Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [Download] Small app for syncing ratings with iTunes (Read 9841 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Download] Small app for syncing ratings with iTunes

Hi everybody,


I've been using foobar2000 for several years now, it's a great application and works great for me. I've been using foobar as my main media player, even as I got first an iPod touch and then an iPhone. So, when musicmusic diappeared and foo_dop wouldn't be updated anymore, I've been looking for alternatives. As some of you might know, there's no such thing. I don't consider iTunes a worthy replacement for foobar.

So, as I wanted to have my ratings synced between foobar and iTunes (and so with my iPhone as well), I began to write my own application for this purpose.
I present to you... iTunes2Tag!




This application reads the ratings from your iTunes database and from the POPM tag of the mp3 file (foobar shows this as "%rating%"). If these are different, one side is updated with the value from the other one.
Using this application should be fairly self explanatory.

You just need these prerequisites:
* mp3 files (D'Oh)
* rating stored in the POPM frame of your mp3 files (can be empty, valid values range from 1 to 5)
* installed iTunes (tested with version 11.0.2.26)
* mp3 files which are to be synced imported into your iTunes library

There're 3 modes of syncing
* iTunes -> Tag: Grabs the rating from iTunes, writes into the POPM frame WITHOUT asking you
* Tag -> iTunes: Same as above but the other way 'round, again WITHOUT asking you
* Sync: Compares both sides and asks for your input when ratings differ. THIS IS THE RECOMMENDED MODE

Feel free to use this application. Full source code is included in the download. It's written in AutoIt Script using this component for reading and writing mp3 tags. Communication with iTunes is done using it's COM API.

PLEASE NOTE:
This application is provided as is. I can and will not be held responsible for any damage this does to your mp3 files, iTunes, computer or your dog.
During my tests, I had some rare cases of this application destroying the tags of some mp3 files. I *think* the used component doesn't like ID3v2.4, so I converted all my tags to ID3v2.3 (using MP3Tag).
You have been warned...

So, without further delay, here's the download link:
DOWNLOAD iTunes2Tag


Cheers, NinjaN
IDE? This is S-ATA!

[Download] Small app for syncing ratings with iTunes

Reply #1
this is awesome, I have been looking for something like this.

some questions...

is only POPM / id3 supported?  will u support vorbis / m4a?

I use winamp, I assume what program you use to rate though doesn't matter?

POPM values are by spec 0-255, but are commonly displayed as 0-5 stars.  1,64,128,196,255 are the commonly written values for those 5 stars.  does your app support that?

I have many files, and I copy them to friends or relatives or whatever, and some of them do iTunes.  so how exactly can I make this work, meaning what are the steps involved?  copy the files to wherever they want them, let iTunes import, and then run your app on the files where they were imported to iTunes from?  how does it know which file matches which iTunes db record?  the file location?

you don't by any chance have a similar app that would add soundcheck tags to a file based on already existing RG tags, do you?


[Download] Small app for syncing ratings with iTunes

Reply #3
MrSinatra, to answer your questions:
* Yes, at the moment only mp3 files and specifically the POPM tag is supported. I don't know if there's a component for AutoIt to add support for other file types like ogg vorbis and m4a...
* As far as I can tell, it absolutely doesn't matter which program (besides iTunes) is used to rate your files, as long as the application in question uses the POPM tag
* The values you mention are exactly those wich are used in my application. Internally, these are converted to 1 to 5 to compare them to iTunes (which uses values from 0 to 100, btw). This is of course also true when writing new values to either side
* The file location from the imported iTunes object is the one and only criteria my application uses. I have not tested how it reacts to dead files, though...
* At the moment, I don't intend to support ReplayGain / Soundchech. I haven't really looked, but I think these will always differ because there're different calculations at work, depending on the program used

So, how do you use this application?
* If you have ratings in your tags, these have to be in the POPM tag to be found
** foobar shows these as %RATING%
** MP3Tag shows these as RATING WMP (under Extended Tags)
* Import these files into your iTunes library, so they show up under Music
* Start iTunes2Tag (iTunes will be started if it isn't already running)
* Push one of the 3 buttons to start the corresponding sync. I STRONGLY RECOMMEND "Sync", which will ask for confirmation before anything is changed!
* Each and every object in your iTunes library will be iterated through, the following will happen (depending on the sync mode selected)
** The iTunes rating will be compared to the rating from the POPM tag (both are converted, so they are represented as values from 0 to 5)
** If these ratings differ, one side will be updated with the value from the other one (iTunes -> Tag / Tag -> iTunes). YOU WILL NOT BE ASKED!
** If  you started "Sync", you will be asked which rating is the one you want to write to the other side. No change is also an option
** When writing ratings, these are converted back, so POPM has values 1 to 255 and iTunes has values 1 to 100

And that's about it. I have about 6.400 files in my iTunes library, syncing them takes about 20 minutes.
With each syncing run, you will get a "log.txt", which contains start and end time and each file with both ratings BEFORE changing anything.

I have only my own PC on which I have written this application. There may be bugs which I haven't discovered yet. As I said before, USE AT YOUR OWN RISK


NinjaN
IDE? This is S-ATA!

[Download] Small app for syncing ratings with iTunes

Reply #4
Brilliant app, thank you!

Is there any option to make same app for syncing playcounts?
In iTunes it should be easy as there's same scheme for playcounts and ratings (just other <key> in .xml). In ID3 tags it should be easy also.
It would be so lovely, it'd solve all my syncing problems...

[Download] Small app for syncing ratings with iTunes

Reply #5
I came here to give you praise. Yes, this app still works as of October 16th 2014. And works flawlessly. Even with Windows 8.1 and new latest iTunes. Unlimited songs it seems like. Couldn't be easier to use. Although when it gets finished it says operation cancelled instead of finished which I thought was super weird.

[Download] Small app for syncing ratings with iTunes

Reply #6
Brilliant app.  I have been looking for something like this for year.  I have tried many, but this one works just fine.

I cannot thank you enough.

[Download] Small app for syncing ratings with iTunes

Reply #7
Thank U 4 this, great 
last.fm | bulletproof2k

[Download] Small app for syncing ratings with iTunes

Reply #8
this is still awesome, but i need this same kind of app to work on a mac.

so my files have the rating, my mac friend gets them and imports them to his mac's itunes, and then the app reads the rating and imports it to his itunes.

Re: [Download] Small app for syncing ratings with iTunes

Reply #9
Hi everybody,


I've been using foobar2000 for several years now, it's a great application and works great for me. I've been using foobar as my main media player, even as I got first an iPod touch and then an iPhone. So, when musicmusic diappeared and foo_dop wouldn't be updated anymore, I've been looking for alternatives. As some of you might know, there's no such thing. I don't consider iTunes a worthy replacement for foobar.

So, as I wanted to have my ratings synced between foobar and iTunes (and so with my iPhone as well), I began to write my own application for this purpose.
I present to you... iTunes2Tag!




This application reads the ratings from your iTunes database and from the POPM tag of the mp3 file (foobar shows this as "%rating%"). If these are different, one side is updated with the value from the other one.
Using this application should be fairly self explanatory.

You just need these prerequisites:
* mp3 files (D'Oh)
* rating stored in the POPM frame of your mp3 files (can be empty, valid values range from 1 to 5)
* installed iTunes (tested with version 11.0.2.26)
* mp3 files which are to be synced imported into your iTunes library

There're 3 modes of syncing
* iTunes -> Tag: Grabs the rating from iTunes, writes into the POPM frame WITHOUT asking you
* Tag -> iTunes: Same as above but the other way 'round, again WITHOUT asking you
* Sync: Compares both sides and asks for your input when ratings differ. THIS IS THE RECOMMENDED MODE

Feel free to use this application. Full source code is included in the download. It's written in AutoIt Script using this component for reading and writing mp3 tags. Communication with iTunes is done using it's COM API.

PLEASE NOTE:
This application is provided as is. I can and will not be held responsible for any damage this does to your mp3 files, iTunes, computer or your dog.
During my tests, I had some rare cases of this application destroying the tags of some mp3 files. I *think* the used component doesn't like ID3v2.4, so I converted all my tags to ID3v2.3 (using MP3Tag).
You have been warned...

So, without further delay, here's the download link:
DOWNLOAD iTunes2Tag


Cheers, NinjaN

Hi guys, sorry for reviving this really old topic, but I really needed the script and I couldn't find it anywhere. Do you still have it available?