Re: Export to iTunes library.xml
Posted: Fri Oct 19, 2018 6:38 pm
Why are you looking to export files? Are you looking to export specific metadata to iTunes?
The Music Manager for Serious Collectors
http://forum.mediamonkey.com/
Code: Select all
<key>7035</key>
<dict>
<key>Track ID</key><integer>7035</integer>
<key>Size</key><integer>2748416</integer>
<key>Total Time</key><integer>168803</integer>
<key>Track Number</key><integer>13</integer>
<key>Track Count</key><integer>17</integer>
<key>Year</key><integer>1990</integer>
<key>BPM</key><integer>134</integer>
<key>Date Modified</key><date>2009-01-14T09:44:52Z</date>
<key>Date Added</key><date>2018-10-22T02:16:03Z</date>
<key>Bit Rate</key><integer>128</integer>
<key>Sample Rate</key><integer>44100</integer>
<key>Artwork Count</key><integer>1</integer>
<key>Persistent ID</key><string>DD6E628FAB056EA5</string>
<key>Track Type</key><string>File</string>
<key>File Folder Count</key><integer>-1</integer>
<key>Library Folder Count</key><integer>-1</integer>
<key>Name</key><string>21st Century (Digital Boy)</string>
<key>Artist</key><string>Bad Religion</string>
<key>Album Artist</key><string>Bad Religion</string>
<key>Album</key><string>Against the Grain</string>
<key>Genre</key><string>Punk</string>
<key>Kind</key><string>MPEG audio file</string>
<key>Sort Artist</key><string>Bad Religion</string>
<key>Location</key><string>file://localhost//sauron/media/audio/MP3/B/Bad%20Religion/1990%20-%20Against%20the%20Grain%20%5BMP3%5D/13%20-%20Bad%20Religion%20-%2021st%20Century%20(Digital%20Boy).mp3</string>
</dict>
Code: Select all
<key>39283</key>
<dict>
<key>Track ID</key><integer>39283</integer>
<key>Name</key><string>21st Century (Digital Boy)</string>
<key>Artist</key><string>Bad Religion</string>
<key>Album Artist</key><string>Bad Religion</string>
<key>Album</key><string>Against the Grain</string>
<key>Kind</key><string>MPEG audio file</string>
<key>Size</key><integer>2748416</integer>
<key>Genre</key><string>Punk</string>
<key>Total Time</key><integer>168803</integer>
<key>Track Number</key><integer>13</integer>
<key>Rating</key><integer>50</integer>
<key>Year</key><integer>1990</integer>
<key>Date Modified</key><date>2009-01-14T03:44:52</date>
<key>Date Added</key><date>2007-12-28T16:51:22</date>
* <key>Play Date UTC</key><date>1899-12-30T00:00:00</date>
<key>Bit Rate</key><integer>128</integer>
<key>Sample Rate</key><integer>44100</integer>
<key>Track Type</key><string>File</string>
<key>File Folder Count</key><integer>-1</integer>
<key>Library Folder Count</key><integer>-1</integer>
<key>BPM</key><string>134</string>
<key>Location</key><string>file://localhost//sauron/media/audio/MP3/B/Bad%20Religion/1990%20-%20Against%20the%20Grain%20%5BMP3%5D/13%20-%20Bad%20Religion%20-%2021st%20Century%20(Digital%20Boy).mp3</string>
</dict>
Code: Select all
<key>Location</key><string>file://localhost//sauron/media/audio/MP3/B/Bad%20Religion/1990%20-%20Against%20the%20Grain%20%5BMP3%5D/13%20-%20Bad%20Religion%20-%2021st%20Century%20(Digital%20Boy).mp3</string>
Code: Select all
<key>Location</key><string>file://localhost/data/media/audio/MP3/B/Bad%20Religion/1990%20-%20Against%20the%20Grain%20%5BMP3%5D/13%20-%20Bad%20Religion%20-%2021st%20Century%20(Digital%20Boy).mp3</string>
I'll have a look into this. I suspect this is actually already fixed in the current development version (available as source in GitHub; not released yet) as I fixed similar issue related to Serato import.Teknojnky wrote: ↑Sun Oct 21, 2018 9:53 pm I have both a bug submission, and a feature request;
first the bug
this script generates invalid play date data for an unplayed track.
<snip>
here is the script generated from mediamonkey for the same unplayed track (added dates will be different), with an invalid play date that is obviously in the past.
I confirmed in mediamonkey that there is no play date, and no play counts.
I raise this issue, due to the import to plex, it imports this invalid play date of the past, into the FUTURE in plex's database.
This is already available in the current release 1.6.2 (https://github.com/fvdpol/MM-ExportITun ... tag/v1.6.2), which was release 17 September. You should be able to configure both the path and filename for the iTunes library to be exported in the configuration dialog.Teknojnky wrote: ↑Sun Oct 21, 2018 9:53 pm
Ok for the feature request, I would like to suggest an option to modify the path (or more specifically, the drive) of the exported files.
for example, mediamonkey and itunes runs on windows, and the music files are on a network server.
the paths in both are \\sauron\media\audio\ and so on
plex however runs on that network server itself, so the path is localCode: Select all
<key>Location</key><string>file://localhost//sauron/media/audio/MP3/B/Bad%20Religion/1990%20-%20Against%20the%20Grain%20%5BMP3%5D/13%20-%20Bad%20Religion%20-%2021st%20Century%20(Digital%20Boy).mp3</string>
while it's not difficult to do a find/replace, its an additional step I have to stop and do any time I want to update the xml for plex.Code: Select all
<key>Location</key><string>file://localhost/data/media/audio/MP3/B/Bad%20Religion/1990%20-%20Against%20the%20Grain%20%5BMP3%5D/13%20-%20Bad%20Religion%20-%2021st%20Century%20(Digital%20Boy).mp3</string>
I have to replace the //sauron with /data
I would think this could be easy to do, since MM stores the drive and path separately.
I could probably go in the script and hardcode it, but I figure this might be useful for other users who have network stored music, which makes the path different from what itunes/mediamonkey see.
The playlists are a separate section within the xml, so should be fairly easy to manually remove....Biggus_Dickus wrote: ↑Mon Oct 22, 2018 10:48 am Yes. I want to say thank you for this addon, also.
Does anybody know, where playlists begin and ends in xml file. So I could erase them manually. Thought I found start/end markers, but Musicbee gave me an error after importing all songs
Not quite sure we are are on the same 'track' here.fvdpol wrote: ↑Wed Nov 14, 2018 2:10 pm
This is already available in the current release 1.6.2 (https://github.com/fvdpol/MM-ExportITun ... tag/v1.6.2), which was release 17 September. You should be able to configure both the path and filename for the iTunes library to be exported in the configuration dialog.
Please check which version of the add-on you are running.
see: https://github.com/fvdpol/MM-ExportITun ... figuration
Ok, got it! I indeed misread your issue, sorry about that.Teknojnky wrote: ↑Wed Nov 14, 2018 2:45 pm thanks I'll check it out!
Not quite sure we are are on the same 'track' here.fvdpol wrote: ↑Wed Nov 14, 2018 2:10 pm
This is already available in the current release 1.6.2 (https://github.com/fvdpol/MM-ExportITun ... tag/v1.6.2), which was release 17 September. You should be able to configure both the path and filename for the iTunes library to be exported in the configuration dialog.
Please check which version of the add-on you are running.
see: https://github.com/fvdpol/MM-ExportITun ... figuration
Yes I see where I configure where itunes xml file can be saved at, but what I was asking about the path and drive of the media *inside* the xml.
in my example above, see how a music file changes the path from a remote to a local path (or vice versa in someone else's possible case).
fvdpol wrote: ↑Wed Nov 14, 2018 3:14 pmOk, got it! I indeed misread your issue, sorry about that.Teknojnky wrote: ↑Wed Nov 14, 2018 2:45 pm thanks I'll check it out!
Not quite sure we are are on the same 'track' here.fvdpol wrote: ↑Wed Nov 14, 2018 2:10 pm
This is already available in the current release 1.6.2 (https://github.com/fvdpol/MM-ExportITun ... tag/v1.6.2), which was release 17 September. You should be able to configure both the path and filename for the iTunes library to be exported in the configuration dialog.
Please check which version of the add-on you are running.
see: https://github.com/fvdpol/MM-ExportITun ... figuration
Yes I see where I configure where itunes xml file can be saved at, but what I was asking about the path and drive of the media *inside* the xml.
in my example above, see how a music file changes the path from a remote to a local path (or vice versa in someone else's possible case).
Remapping of filepaths is not supported, and am currently not sure if this is something that I would envision within the scope of the MM add-on. Currently the file paths exported in the iTunes xml reference the location as seen by MediaMonkey (which can be a myriad of different locations/devices/folders... depending on how one manages their library)
I have a somewhat similar use-case myself where I export the library/playlists to iTunes format using this add-on; but use another application to perform a selective copy/synchronization of the part of the MM library (stored on my NAS) to local storage on my MacBook for Traktor DJ.
Added this feature to the current development version in the 'exclude-playlists-in-export' branch, and tagged it for potential inclusion for the next release.fvdpol wrote: ↑Wed Nov 14, 2018 2:20 pmThe playlists are a separate section within the xml, so should be fairly easy to manually remove....Biggus_Dickus wrote: ↑Mon Oct 22, 2018 10:48 am Yes. I want to say thank you for this addon, also.
Does anybody know, where playlists begin and ends in xml file. So I could erase them manually. Thought I found start/end markers, but Musicbee gave me an error after importing all songs
Initially I did not really understand your use-case for this feature, but now I do understand -- and is is completely different from my personal use-case since I use MediaMonkey to manage the playlists
I logged your feature request in GitHub: https://github.com/fvdpol/MM-ExportITun ... /issues/12
please subscribe to this issue, discuss details en support me with testing once I start working on adding this feature.
fvdpol wrote: ↑Fri Nov 16, 2018 11:47 amAdded this feature to the current development version in the 'exclude-playlists-in-export' branch, and tagged it for potential inclusion for the next release.fvdpol wrote: ↑Wed Nov 14, 2018 2:20 pmThe playlists are a separate section within the xml, so should be fairly easy to manually remove....Biggus_Dickus wrote: ↑Mon Oct 22, 2018 10:48 am Yes. I want to say thank you for this addon, also.
Does anybody know, where playlists begin and ends in xml file. So I could erase them manually. Thought I found start/end markers, but Musicbee gave me an error after importing all songs
Initially I did not really understand your use-case for this feature, but now I do understand -- and is is completely different from my personal use-case since I use MediaMonkey to manage the playlists
I logged your feature request in GitHub: https://github.com/fvdpol/MM-ExportITun ... /issues/12
please subscribe to this issue, discuss details en support me with testing once I start working on adding this feature.
I added a build of add-on with this new feature to the GitHub issue https://github.com/fvdpol/MM-ExportITun ... /issues/12
Please check with this works for you / is what you are looking for and let me know (preferably as comment on the GitHub issue as that is much easier to keep track of than this forum)