mm_rating_to_itunes Error

58 views
Skip to first unread message

macnero

unread,
Feb 15, 2013, 10:17:59 AM2/15/13
to teridons-itu...@googlegroups.com
Script works great. However I get the following errors:
 
ERROR: Got POPM value of 153, for which no translation exists
ERROR: Got POPM value of 204, for which no translation exists
 
Those files are 4 star in MM

turingtest2

unread,
Mar 2, 2013, 11:15:05 AM3/2/13
to teridons-itu...@googlegroups.com
Hi, 

I just found out Teridon's old site doesn't seem to work any more. I've managed to download a cached copy of the script however so I'll see if I can make sense of it. From what I understand the ID3 "Popularimeter" Rating can take any value from 1 to 255 with 0 being unknown. iTunes uses a value from 0% to 100% internally so I'm not quite sure why the script is using a lookup table instead of something like INT((X*100)/255), however since I really don't know Perl I might have to wrap my head around that first... 

Actually this shouldn't be too hard. Download a copy of Notepad++ open the script and either edit the existing lines that read 

"154" => 60,  # 3.0 stars
and
"205" => 80,  # 4.0 stars

to read 

"153" => 60,  # 3.0 stars
and
"204" => 80,  # 4.0 stars

respectively (no backwards compatability), or add the extra lines into the script so that the whole function reads as:

my %mm_to_itunes_rating = (
"13" =>  10,  # 0.5 stars
"28" =>  10,  # 0.5 stars
"23" =>  20,  # 1.0 stars
"53" =>  20,  # 1.0 stars
"54" =>  30,  # 1.5 stars
"78" =>  30,  # 1.5 stars
"64" =>  40,  # 2.0 stars
"104" => 40,  # 2.0 stars
"118" => 50,  # 2.5 stars
"129" => 50,  # 2.5 stars
"128" => 60,  # 3.0 stars
"153" => 60,  # 3.0 stars
"154" => 60,  # 3.0 stars
"179" => 70,  # 3.5 stars
"186" => 70,  # 3.5 stars
"196" => 80,  # 4.0 stars
"204" => 80,  # 4.0 stars
"205" => 80,  # 4.0 stars
"230" => 90,  # 4.5 stars
"242" => 90,  # 4.5 stars
"252" => 100, # 5.0 stars
"255" => 100, # 5.0 stars
);

Not tested, but there is really no reason to believe it won't fix the issue. And now you know what to do if other values cause problems.

tt2

ter...@gmail.com

unread,
Mar 13, 2013, 7:12:12 PM3/13/13
to teridons-itu...@googlegroups.com


On Saturday, March 2, 2013 11:15:05 AM UTC-5, turingtest2 wrote:
Hi, 

I just found out Teridon's old site doesn't seem to work any more.

Sorry, it was down because my ISP had a false detection of a virus on my site. It's back up now.
 
I've managed to download a cached copy of the script however so I'll see if I can make sense of it. From what I understand the ID3 "Popularimeter" Rating can take any value from 1 to 255 with 0 being unknown. iTunes uses a value from 0% to 100% internally so I'm not quite sure why the script is using a lookup table instead of something like INT((X*100)/255),

Because, at least when I wrote the program, MediaMonkey didn't use any sort of reasonable formula when assigning numbers to ratings.  Not one I could figure out, anyway -- so I used a lookup table.  I probably should've put in a linear formula as a backup but ... I just didn't.
The code is probably right, but most people don't have Perl installed on their system so they won't have a way to run the script.  In other words, one would have to install Perl (e.g. ActivePerl) and run itunes_scripts.pl.

Steve MacGuire

unread,
Mar 14, 2013, 3:51:47 PM3/14/13
to teridons-itu...@googlegroups.com
No worries,

I've download & installed ActivePerl, eventually managed to find and download the MP3-Tag library, got the MinGW C compiler installed, but I still can't work out how to get the MP3-Tag library integrated into the Perl environment so your script will work. Years of NOT reading manuals probably means I'm overlooking something obvious...

Steve MacGuire
  


--
You received this message because you are subscribed to a topic in the Google Groups "Teridon's iTunes Programs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/teridons-itunes-programs/fohwZeb2czk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to teridons-itunes-pr...@googlegroups.com.
To post to this group, send email to teridons-itu...@googlegroups.com.
Visit this group at http://groups.google.com/group/teridons-itunes-programs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Steve MacGuire

unread,
Mar 14, 2013, 4:57:47 PM3/14/13
to teridons-itu...@googlegroups.com
Ignore my last message, found out how to install the MP3 Tag library. However it seems the source files that come out of teridons_itunes_scripts.zip don't match up with the text versions available on your site. They all seem to have a last line reading:

1;

and appear to exit without doing anything if run. Again, I'm probably misunderstanding how things are supposed to work and making unwarranted assumptions.

I've pulled the text version of mm_rating_to_itunes from your site and made that version of it work, however itunes_rating_to_popm isn't there and it would be nice to be able to run/edit the script version of that also.

Regards,

Steve MacGuire
 


On 13 Mar 2013, at 23:12, "ter...@gmail.com" <ter...@gmail.com> wrote:

--

Jason deCourcy

unread,
Mar 14, 2013, 5:24:32 PM3/14/13
to teridons-itu...@googlegroups.com
Steve,

I can't seem to unsubscribe.  Could you help me with this?

I have two email addresses:

thanks

________________________________
Jason deCourcy
Fusion Consulting
Bus: 416 821-6607
E-mail: jas...@fusion-consulting.ca
The off-site IT department for your business



--
You received this message because you are subscribed to the Google Groups "Teridon's iTunes Programs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to teridons-itunes-pr...@googlegroups.com.

turingtest2

unread,
Mar 14, 2013, 5:36:02 PM3/14/13
to teridons-itu...@googlegroups.com
Oops, and I thought I was replying to the man himself instead of the Group! <insert embarrassed smiley> 

If you sign into Google Groups to view the thread then near the top-right is a drop down tool button with a figure and a small gear wheel. Options in there to control subscriptions to individual topics or the group as a whole.

Regards,

Steve MacGuire aka turingtest2

ter...@gmail.com

unread,
Mar 14, 2013, 7:46:40 PM3/14/13
to teridons-itu...@googlegroups.com


On Thursday, March 14, 2013 4:57:47 PM UTC-4, turingtest2 wrote:
Ignore my last message, found out how to install the MP3 Tag library. However it seems the source files that come out of teridons_itunes_scripts.zip don't match up with the text versions available on your site. They all seem to have a last line reading:

1;

and appear to exit without doing anything if run. Again, I'm probably misunderstanding how things are supposed to work and making unwarranted assumptions.

The scripts in the source code are subroutines only; they are included from itunes_scripts.pl  -- i.e. you have to run itunes_scripts.pl and call the appropriate subroutine.  If you call them directly, they run without seeming to do anything because they just define subs.

The individual scripts on my site are indeed different and perhaps even more out of date -- but they should run as standalone scripts.

Shermer321

unread,
Jun 15, 2013, 10:37:44 PM6/15/13
to teridons-itu...@googlegroups.com
Is there any way of changing the script to run for all tracks and that is it? For some reason when I run the script after selecting all it only does a small portion. Any input would be great. I don't get an error, just press enter to exit.
Reply all
Reply to author
Forward
0 new messages