iTunes & Traktor Collection

Patch's Avatar

Patch

11 Jan, 2018 06:24 PM

I’m using BeaTunes and love it.

I’ve been searching for a long time for a way to manipulate the metadata that Traktor creates and stores in iTunes.

For example - I’d love to create an iTunes smart playlist that is based on the number of times a track has been played in Traktor.

It would mean comparing the Traktor Collection .xml with the iTunes Library .xml, and updating the iTunes .nml with the Traktor playcount from the Collection .xml.

Could BeaTunes be the bridge that sits between Traktor and iTunes, to allow us to manipulate the Traktor metadata in iTunes???

  1. 1 Posted by Patch on 11 Jan, 2018 06:27 PM

    Patch's Avatar

    Also - I don’t store my music in any kind of folder structure.

    All my music (7k’ish files) is in a single folder in windows.

    All sorting & grouping is done on iTunes based on file tags and in smart playlists...

  2. Support Staff 2 Posted by hendrik on 11 Jan, 2018 07:28 PM

    hendrik's Avatar

    beaTunes supports multiple kinds of libraries: folder-based and iTunes-based.

    When a library is folder based, beaTunes tries to stay in sync with the metadata that are actually in your files.
    When a library is iTunes-based, beaTunes tries to stay in sync with whatever iTunes is showing to you.

    I assume (and I may be wrong) that Traktor updates the play count field in your audio files. iTunes may not be aware of that. And if you are using an iTunes-based library, beaTunes will never read your files, but rely on what iTunes says (except for stuff that iTunes does not support, like keys).

    But, have you ever played a file in iTunes after the play count was updated by Traktor? Typically, iTunes re-reads metadata when it plays a file. So your play counts may show up then. Have you tried this?

  3. 3 Posted by Patch on 11 Jan, 2018 08:58 PM

    Patch's Avatar

    Traktor doesn’t alter the playcount in the audio files. It updates its own Collection.xml file (that holds all of the information relating to each file).

    So Traktor records it’s own playcount in the Collection.xml, and iTunes records it’s own playcount in the library.xml.

    No playcount record is held in the audio file.

  4. Support Staff 4 Posted by hendrik on 11 Jan, 2018 09:13 PM

    hendrik's Avatar

    Then what you really need is some tool that reads the Traktor's Collection.xml file and periodically writes those play counts to iTunes.

    I am afraid, beaTunes is not that tool, as it has zero understanding of the Collection.xml file. IMHO, Traktor should just update the files.

  5. 5 Posted by Patch on 13 Jan, 2018 11:02 AM

    Patch's Avatar

    I did wonder if BeaTunes could access the Traktor Collection file, the same way that it does access the iTunes Library file...

  6. Support Staff 6 Posted by hendrik on 15 Jan, 2018 05:04 PM

    hendrik's Avatar

    I did some digging and one could write a simple plugin that parses the NI collection.nml file, extracts filenames and play counts and writes those to beaTunes (and thus iTunes). The hardest part is probably converting the ancient mac paths to POSIX paths...

  7. Support Staff 7 Posted by hendrik on 15 Jan, 2018 05:47 PM

    hendrik's Avatar

    Are you on Windows or macOS?

  8. 8 Posted by Sky Makai on 15 Jan, 2018 08:24 PM

    Sky Makai's Avatar

    I'm interested in the same thing. MacOS user here.

  9. Support Staff 9 Posted by hendrik on 17 Jan, 2018 09:01 AM

    hendrik's Avatar

    Anything else besides the play count you'd like to import from collection.nml?

  10. 10 Posted by Sky Makai on 17 Jan, 2018 06:46 PM

    Sky Makai's Avatar

    Play Count as well as Last Played would be helpful. Thank you.

  11. 11 Posted by Patch on 17 Jan, 2018 08:01 PM

    Patch's Avatar

    I’m on Windows.

    That’s REALLY exciting. Honestly, I don’t play ANY of my DJ library in iTunes, I literally only use iTunes for library management, and navigation/loading from the iTunes node in Traktor.

    Re: other Traktor info to add to iTunes - yeah - last played would be useful. I suppose any playcount or date info where the tag type is available in both iTunes and Traktor would be usable in creating Smartplaylists.

    I’m super excited about this. Really glad that it could potentially make it into BeaTunes featureset!!!

  12. Support Staff 12 Posted by hendrik on 18 Jan, 2018 06:05 PM

    hendrik's Avatar

    So...

    I hacked a little and created a beaTlet that should do what you want. It's in the GitHub repo at https://github.com/beatunes/beaTlet-samples/blob/master/groovy/Impo...

    Feel free to install it, restart beaTunes and give it a shot. To use, select the Tools menu and then Import Traktor Dates & Counts. A "File Open" dialog will pop up and you will have to select the correct collection.nml file. Once that is selected, beaTunes will try to parse it and adjust dates and play counts in its own library accordingly (... and if that's tied to iTunes, iTunes will be told about these changes). There is little visual feedback, but a wait cursor and a done message.

    I have not properly tested this. It should work on macOS, but on Windows I haven't had a chance to really try it out. So your mileage may vary ;-) If you are able to program, feel free to improve the script and send a pull request.

    Hope this works for you,

    -hendrik

  13. 13 Posted by Sky Makai on 18 Jan, 2018 06:12 PM

    Sky Makai's Avatar

    Thanks, Hendrik.

    I'll give it a try on MacOS.

  14. Support Staff 14 Posted by hendrik on 18 Jan, 2018 06:57 PM

    hendrik's Avatar

    I'll give it a try on MacOS.

    Cool. Please let me know how it goes!

  15. 15 Posted by Patch on 18 Jan, 2018 10:45 PM

    Patch's Avatar

    I’ll make backups of my Traktor & iTunes library’s and give it a go on Windows this weekend!!!

    Cheers!

  16. 16 Posted by Patch on 21 Jan, 2018 12:31 PM

    Patch's Avatar

    Looks like I won’t get round to trying this this weekend - but it is now at the top of my to-do list!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac