INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Import from MediaMonkey?  (Read 3603 times)

natelabo

  • Recent member
  • *
  • Posts: 14
Import from MediaMonkey?
« on: February 02, 2013, 07:20:51 pm »

Ok I don't know if this is possible searched a bunch... I need to import playcounts from MediaMonkey... Is this possible? I will purchase immediately.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import from MediaMonkey?
« Reply #1 on: February 02, 2013, 08:48:47 pm »

I think the real question is, can you get MediaMonkey to create a playlist with your play counts.  If you can do that, they can be brought into MC.
Logged
The opinions I express represent my own folly.

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #2 on: February 02, 2013, 09:14:24 pm »

I think I found an export library to XML script? I don't know how to import a playlist with playcounts
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import from MediaMonkey?
« Reply #3 on: February 02, 2013, 09:41:27 pm »

If you use Dropbox or other repository, upload your exported playlist that contains the filenames and counts, and PM me the link.

I'll let you know how to proceed once I have a look at the data.

If you need another way, PM me with an email address to reply.
Logged
The opinions I express represent my own folly.

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #4 on: February 02, 2013, 10:02:49 pm »

Here is what MediaMonkey currently imports:
Code: [Select]
<?xml version='1.0'?>
<MusicDatabase>
  <Artists>
    <Artist id="Artist_1">
       <Name>(hed) pe</Name>
    </Artist>
  </Artists>
  <Albums>
    <Album id="Album_1">
       <PerformingArtist id="0">(hed) pe</PerformingArtist>
       <Name>(hed) pe</Name>
    </Album>
  </Albums>
  <Songs>
    <Song id="Song_1">
       <Title>P.O.S.</Title>
       <PerformingArtist id="Artist_0">(hed) pe</PerformingArtist>
       <ContainedInAlbum id="Album_1">(hed) pe</ContainedInAlbum>
       <SongLength ms="193400">3:13</SongLength>
       <Year value="1997"/>
       <Genre>Metal</Genre>
       <Bitrate>1058191</Bitrate>
       <Location>
         <Media id="Media_1" sn="0">Network</Media>
         <Path>\\192.168.0.15\media\music\(hed) pe\(hed) pe\01 P.O.S..wma</Path>
       </Location>
    </Song>
    <Song id="Song_2">
       <Title>Ground</Title>
       <PerformingArtist id="Artist_0">(hed) pe</PerformingArtist>
       <ContainedInAlbum id="Album_1">(hed) pe</ContainedInAlbum>
       <SongLength ms="152266">2:32</SongLength>
       <Year value="1997"/>
       <Genre>Metal</Genre>
       <Bitrate>1074242</Bitrate>
       <Location>
         <Media id="Media_1" sn="0">Network</Media>
         <Path>\\192.168.0.15\media\music\(hed) pe\(hed) pe\02 Ground.wma</Path>
       </Location>
    </Song>
    <Song id="Song_3">
       <Title>Serpent Boy</Title>
       <PerformingArtist id="Artist_0">(hed) pe</PerformingArtist>
       <ContainedInAlbum id="Album_1">(hed) pe</ContainedInAlbum>
       <SongLength ms="350093">5:50</SongLength>
       <Year value="1997"/>
       <Genre>Metal</Genre>
       <Bitrate>1106211</Bitrate>
       <Location>
         <Media id="Media_1" sn="0">Network</Media>
         <Path>\\192.168.0.15\media\music\(hed) pe\(hed) pe\03 Serpent Boy.wma</Path>
       </Location>
    </Song>
  </Songs>
</MusicDatabase>
...But I'm figuring out how to modify the output. Is there an example of what MC needs?
Logged

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #5 on: February 03, 2013, 12:17:32 am »

Through some testing.... got it to work...
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import from MediaMonkey?
« Reply #6 on: February 03, 2013, 01:22:32 am »

I see no play stats in any case.

MC can just import your files directly.  If they are tagged correctly, or in well-named files and folders (that include the relevant metadata), MC can pull this info.
Logged
The opinions I express represent my own folly.

InsaneRC

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Import from MediaMonkey?
« Reply #7 on: February 03, 2013, 03:34:51 am »

Through some testing.... got it to work...

How did you get it to work?
Logged
Licensed User:
JRiver Media Center 12-->27

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #8 on: February 03, 2013, 11:54:36 am »

I modified MM export script to include data into MPL format:
Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="Export">
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\01 And You Will Know Them....flac</Field>
<Field Name="Number Plays">3</Field>
<Field Name="Last Played UTC">12/11/2012 2:46:19 AM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:47 PM</Field>
<Field Name="Rating">69</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\02 Mistakes &amp; Regrets.flac</Field>
<Field Name="Number Plays">1</Field>
<Field Name="Last Played UTC">9/1/2010 5:23:02 PM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
<Field Name="Rating">59</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\03 Totally Natural.flac</Field>
<Field Name="Number Plays">1</Field>
<Field Name="Last Played UTC">9/1/2010 5:27:18 PM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
<Field Name="Rating">59</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\04 Blight Takes All.flac</Field>
<Field Name="Number Plays">1</Field>
<Field Name="Last Played UTC">9/1/2010 5:32:02 PM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
<Field Name="Rating">59</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\05 Clair de Lune.flac</Field>
<Field Name="Number Plays">21</Field>
<Field Name="Last Played UTC">12/13/2012 11:17:11 AM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
<Field Name="Rating">89</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\06 Flood of Red.flac</Field>
<Field Name="Number Plays">1</Field>
<Field Name="Last Played UTC">9/1/2010 8:27:16 PM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
<Field Name="Rating">59</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\07 Children of the Hydra's Teeth.flac</Field>
<Field Name="Number Plays">2</Field>
<Field Name="Last Played UTC">12/12/2010 6:09:55 PM</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
<Field Name="Rating">59</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\08 Mark David Chapman.flac</Field>
<Field Name="Number Plays">0</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\09 Up From Redemption.flac</Field>
<Field Name="Number Plays">0</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\10 Aged Dolls.flac</Field>
<Field Name="Number Plays">0</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\11 The Day the Air Turned Blue.flac</Field>
<Field Name="Number Plays">0</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\12 A Perfect Teenhood.flac</Field>
<Field Name="Number Plays">0</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
</Item>
<Item>
<Field Name="Filename">\\192.168.0.15\media\music\...And You Will Know Us By The Trail of Dead\Madonna\13 Sigh Your Children.flac</Field>
<Field Name="Number Plays">0</Field>
<Field Name="Date Imported UTC">8/15/2010 4:44:48 PM</Field>
</Item>
</MPL>

I can't seem to get the dates to properly import? And I don't know if the rating is in the right format? Can anyone help? THanks!
Logged

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #9 on: February 03, 2013, 12:43:57 pm »

Ok convert the dates to UNIX epoch which worked... Now I just need to know what the scale is for MC's rating.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import from MediaMonkey?
« Reply #10 on: February 03, 2013, 01:39:15 pm »

MC's scale is 1-5.

The way I was going to suggest doing this is to let MC import the files.  Once imported, I would have used your playlist, but modified to include only the filepath and the rating and play count.  Importing that will pull in these new values, and leave the properties MC pulled from your files.

Whatever works, works.
Logged
The opinions I express represent my own folly.

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #11 on: February 03, 2013, 01:55:09 pm »

Thanks for your help MrC got it all setup and testing some features...

I pulled over Filepath, Playcount, Last Played, Date Added (Date Imported) and rating as I create custom searches from these.

I manually imported all files... Then created the export MPL with the above properties. This updates MC with the proper data :)

Here is the script update needed to get the proper data from MM for anyone that is intested. You have to edit the Export script in MM installation folder. This is the last function:

Code: [Select]
Sub ExportXML
  ' initialize export
  Call InitExport (".mpl", SDB.Localize("MPL (*.mpl)|*.mpl|All files (*.*)|*.*"), _
      "LastExportMPLDir")
  if fullfile="" then
    Exit Sub
  end if

  ' Create the output file
  Dim fout
  Set fout = fso.CreateTextFile( fullfile, True)

  ' Use progress to notify user about the current action
  Dim Progress
  Set Progress = SDB.Progress
  Dim ProgressString
  ProgressString = SDB.Localize("Exporting...")

  Dim i

  fout.WriteLine "<?xml version="""&"1.0"&""" encoding="""&"UTF-8"&""" standalone="""&"yes"&""" ?>"
  fout.WriteLine "<MPL Version="""&"2.0"&""" Title="""&"Export"&""">"

  ' Iterate through the list and export all songs
  Progress.Text = ProgressString & " (songs)"
  Progress.MaxValue = list.count
  Dim Song, Media, StartDate
  StartDate = "1/1/1970"
  for i=0 to list.count-1
    Set Song = list.Item(i)
    fout.WriteLine "<Item>"
    fout.WriteLine "<Field Name="""&"Filename"&""">"& MapXML(Song.Path) &"</Field>"
    fout.WriteLine "<Field Name="""&"Number Plays"&""">"& MapXML(Song.PlayCounter) &"</Field>"
    if Song.PlayCounter>0 then
        fout.WriteLine "<Field Name="""&"Last Played"&""">"& DateDiff("s",StartDate,Song.LastPlayed) &"</Field>"
        if Song.Rating>-1 then
    Dim rating
    Dim ratingCal
    rating = CInt(Song.Rating)
    ratingCal = Round(rating/20)
if ratingCal = 0 then
    ratingCal = 1
end if
        fout.WriteLine "<Field Name="""&"Rating"&""">"& ratingCal &"</Field>"
        end if
    end if
    fout.WriteLine "<Field Name="""&"Date Imported UTC"&""">"& DateDiff("s",StartDate,Song.DateAdded) &"</Field>"
    fout.WriteLine "</Item>"
    Progress.Increase
    if Progress.Terminate then
      Exit For
    end if
  next

  fout.WriteLine "</MPL>"

  ' Close the output file and finish
  fout.Close

  ' Was it successfull?
  Dim ok
  if Progress.Terminate then
    ok = False
  else
    ok = True
  end if

  ' hide progress
  Set Progress = Nothing

  Call FinishExport( ok)
End Sub
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import from MediaMonkey?
« Reply #12 on: February 03, 2013, 02:02:58 pm »

Outstanding!

Now with all this excellent community support, and you having achieved your goals, did you make that promised purchase?  :-)
Logged
The opinions I express represent my own folly.

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #13 on: February 03, 2013, 03:17:10 pm »

Just doing some final testing... Looking at how the media server interacts with my external device. It's the only feature that was really lacking in MediaMonkey. I just wanted the MediaServer to update plays on whatever device I played from and update last.fm. Both which seem supported in MC! So I think a purchase will be inline... :)
Logged

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #14 on: February 03, 2013, 05:02:43 pm »

Some final questions... Is there a way to turn off player options? I would like to setup one box as a fixed server box. Everything else will be stand alone clients connecting to this server...
Logged

natelabo

  • Recent member
  • *
  • Posts: 14
Re: Import from MediaMonkey?
« Reply #15 on: February 03, 2013, 05:06:23 pm »

Also along the same line of questioning... Is there a way to setup a client only install?
Logged
Pages: [1]   Go Up