Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

farmermac

macrumors 6502a
Original poster
Jul 23, 2009
779
11
Iowa
Some of my MP3s have lots of missing album info, year, etc. I am signed up with itunes match but it doesnt seem to update the id3 tag of the songs. Any way to force it to redownload the whole track?
 

mactmaster

macrumors 6502
Jun 16, 2010
390
1
This would be good if they offered it as an option but not force it. I also have a few files without info.
 

kopiikat

macrumors newbie
Nov 16, 2011
2
0
This is the main reason why I was looking forward to iTunes Match, so I'm fairly disappointed. I have a ton of music from before tagging music became standard, and I was really looking forward to having it finally organized...
 

ksujeff99

macrumors newbie
Mar 14, 2011
6
0
Me too. I have incomplete and incorrect ID3 tags I'd like to see fixed. Fingers crossed that there's a way.
 

paulbee

macrumors member
Nov 17, 2011
66
4
I'd love this, too. I'm positive iTunes has better metadata than I do in a lot of cases, and I'd happily throw out all my metadata, get Apple's, and then apply any tweaks after that.
 

Mr. Zarniwoop

macrumors 6502a
Jun 9, 2005
751
139
This is a ruby script to do what is being asked.

Thank for you pointing me to this, it's fantastic. The author tweeted a faster new version that uses the metadata from all of the iTunes Stores (not just US) and the instructions are at the front of the script:

#!/usr/bin/env ruby
# by @tapbot_paul
# Don't blame me if this nukes your metadata, formats your drive, kills your kids
# This script goes through any iCloud Matched songs in your iTunes library and tries to update the
# metadata from the iTunes Store
# Will run against selected tracks or if nothing selected entire library
# install the required gems with the following commands
# sudo gem install json
# sudo gem install rb-appscript
# then run the script with "ruby meta.rb"

I bolded the commands to type in Terminal. Do that, and then have iTunes closed and run the script. It updates the track name, album name, artist name, track number, number of tracks, genre name, disc number and disc count with the metadata from the matched song in the iTunes Music Store.
 

tburk32

macrumors member
Oct 18, 2011
67
0
This script only works for a mac correct? I purchased the itunes match last to use with my ipad and I've been going through trying to get my files as accurate as possible before downloading them on my macbook air for accuracy. So basically my question is if I wait until I get my macbook air it'll be much easier and quicker than doing it manually? This is very encouraging to say the least.
 

Mr. Zarniwoop

macrumors 6502a
Jun 9, 2005
751
139
For those curious, results from the script on my iTunes library are below. I don't think I have a particularly international collection, and was a bit surprised at the number of songs not matched in the US store but to another one.

Reading 17494 tracks *********************************************************************************************************
Found 10564 matched tracks
Querying US store for 10564 tracks ********************************************************************************************************** 6738 updated
Querying GB store for 3888 tracks *************************************** 1203 updated
Querying AU store for 2690 tracks *************************** 171 updated
Querying FR store for 2520 tracks ************************** 53 updated
Querying DE store for 2467 tracks ************************* 52 updated
Querying CA store for 2416 tracks ************************* 98 updated
Querying IT store for 2319 tracks ************************ 8 updated
Querying JP store for 2311 tracks ************************ 14 updated
Querying DZ store for 2297 tracks *********************** 0 updated
Querying AO store for 2297 tracks *********************** 0 updated
Querying AI store for 2297 tracks *********************** 0 updated
Querying AG store for 2297 tracks *********************** 0 updated
Querying AR store for 2297 tracks *********************** 54 updated
Querying AM store for 2243 tracks *********************** 0 updated
Querying AT store for 2243 tracks *********************** 4 updated
Querying AZ store for 2239 tracks *********************** 0 updated
Querying BS store for 2239 tracks *********************** 0 updated
Querying BH store for 2239 tracks *********************** 0 updated
Querying BD store for 2239 tracks *********************** 0 updated
Querying BB store for 2239 tracks *********************** 0 updated
Querying BY store for 2239 tracks *********************** 0 updated
Querying BE store for 2239 tracks *********************** 35 updated
Querying BZ store for 2204 tracks *********************** 0 updated
Querying BM store for 2204 tracks *********************** 0 updated
Querying BO store for 2204 tracks *********************** 0 updated
Querying BW store for 2204 tracks *********************** 0 updated
Querying BR store for 2204 tracks *********************** 0 updated
Querying BN store for 2204 tracks *********************** 0 updated
Querying BG store for 2204 tracks *********************** 6 updated
Querying CM store for 2198 tracks ********************** 0 updated
Querying KY store for 2198 tracks ********************** 0 updated
Querying CL store for 2198 tracks ********************** 0 updated
Querying CN store for 2198 tracks ********************** 0 updated
Querying CO store for 2198 tracks ********************** 0 updated
Querying CR store for 2198 tracks ********************** 0 updated
Querying CI store for 2198 tracks ********************** 0 updated
Querying HR store for 2198 tracks ********************** 0 updated
Querying CY store for 2198 tracks ********************** 0 updated
Querying CZ store for 2198 tracks ********************** 14 updated
Querying DK store for 2184 tracks ********************** 6 updated
Querying DM store for 2178 tracks ********************** 0 updated
Querying DO store for 2178 tracks ********************** 0 updated
Querying EC store for 2178 tracks ********************** 0 updated
Querying EG store for 2178 tracks ********************** 0 updated
Querying SV store for 2178 tracks ********************** 0 updated
Querying EE store for 2178 tracks ********************** 0 updated
Querying ET store for 2178 tracks ********************** 0 updated
Querying FI store for 2178 tracks ********************** 0 updated
Querying GH store for 2178 tracks ********************** 0 updated
Querying GR store for 2178 tracks ********************** 0 updated
Querying GD store for 2178 tracks ********************** 0 updated
Querying GT store for 2178 tracks ********************** 0 updated
Querying GY store for 2178 tracks ********************** 0 updated
Querying HN store for 2178 tracks ********************** 0 updated
Querying HK store for 2178 tracks ********************** 0 updated
Querying HU store for 2178 tracks ********************** 4 updated
Querying IS store for 2174 tracks ********************** 0 updated
Querying IN store for 2174 tracks ********************** 0 updated
Querying ID store for 2174 tracks ********************** 0 updated
Querying IE store for 2174 tracks ********************** 1 updated
Querying IL store for 2173 tracks ********************** 0 updated
Querying JM store for 2173 tracks ********************** 0 updated
Querying JO store for 2173 tracks ********************** 0 updated
Querying KZ store for 2173 tracks ********************** 0 updated
Querying KE store for 2173 tracks ********************** 0 updated
Querying KR store for 2173 tracks ********************** 0 updated
Querying KW store for 2173 tracks ********************** 0 updated
Querying LV store for 2173 tracks ********************** 0 updated
Querying LB store for 2173 tracks ********************** 0 updated
Querying LY store for 2173 tracks ********************** 0 updated
Querying LI store for 2173 tracks ********************** 0 updated
Querying LT store for 2173 tracks ********************** 0 updated
Querying LU store for 2173 tracks ********************** 0 updated
Querying MO store for 2173 tracks ********************** 0 updated
Querying MK store for 2173 tracks ********************** 0 updated
Querying MG store for 2173 tracks ********************** 0 updated
Querying MY store for 2173 tracks ********************** 0 updated
Querying MV store for 2173 tracks ********************** 0 updated
Querying ML store for 2173 tracks ********************** 0 updated
Querying MT store for 2173 tracks ********************** 0 updated
Querying MU store for 2173 tracks ********************** 0 updated
Querying MX store for 2173 tracks ********************** 140 updated
Querying MD store for 2036 tracks ********************* 0 updated
Querying MS store for 2036 tracks ********************* 0 updated
Querying MM store for 2036 tracks ********************* 0 updated
Querying NP store for 2036 tracks ********************* 0 updated
Querying NL store for 2036 tracks ********************* 1 updated
Querying NZ store for 2035 tracks ********************* 0 updated
Querying NI store for 2035 tracks ********************* 0 updated
Querying NE store for 2035 tracks ********************* 0 updated
Querying NG store for 2035 tracks ********************* 0 updated
Querying NO store for 2035 tracks ********************* 0 updated
Querying OM store for 2035 tracks ********************* 0 updated
Querying PK store for 2035 tracks ********************* 0 updated
Querying PA store for 2035 tracks ********************* 0 updated
Querying PY store for 2035 tracks ********************* 0 updated
Querying PE store for 2035 tracks ********************* 0 updated
Querying PH store for 2035 tracks ********************* 0 updated
Querying PL store for 2035 tracks ********************* 1 updated
Querying PT store for 2034 tracks ********************* 0 updated
Querying QA store for 2034 tracks ********************* 0 updated
Querying RO store for 2034 tracks ********************* 0 updated
Querying RU store for 2034 tracks ********************* 0 updated
Querying KN store for 2034 tracks ********************* 0 updated
Querying LC store for 2034 tracks ********************* 0 updated
Querying VC store for 2034 tracks ********************* 0 updated
Querying SA store for 2034 tracks ********************* 0 updated
Querying SN store for 2034 tracks ********************* 0 updated
Querying RS store for 2034 tracks ********************* 0 updated
Querying SG store for 2034 tracks ********************* 0 updated
Querying SK store for 2034 tracks ********************* 0 updated
Querying SI store for 2034 tracks ********************* 0 updated
Querying ZA store for 2034 tracks ********************* 0 updated
Querying ES store for 2034 tracks ********************* 1 updated
Querying LK store for 2033 tracks ********************* 0 updated
Querying SR store for 2033 tracks ********************* 0 updated
Querying SE store for 2033 tracks ********************* 0 updated
Querying CH store for 2033 tracks ********************* 5 updated
Querying TW store for 2028 tracks ********************* 0 updated
Querying TZ store for 2028 tracks ********************* 0 updated
Querying TH store for 2028 tracks ********************* 0 updated
Querying TT store for 2028 tracks ********************* 0 updated
Querying TN store for 2028 tracks ********************* 0 updated
Querying TR store for 2028 tracks ********************* 0 updated
Querying TC store for 2028 tracks ********************* 0 updated
Querying UG store for 2028 tracks ********************* 0 updated
Querying UA store for 2028 tracks ********************* 0 updated
Querying AE store for 2028 tracks ********************* 0 updated
Querying UY store for 2028 tracks ********************* 0 updated
Querying UZ store for 2028 tracks ********************* 0 updated
Querying VE store for 2028 tracks ********************* 0 updated
Querying VN store for 2028 tracks ********************* 0 updated
Querying VG store for 2028 tracks ********************* 0 updated
Querying YE store for 2028 tracks ********************* 0 updated
Couldn't find meatadata for 2028 tracks
 

aristobrat

macrumors G5
Oct 14, 2005
12,292
1,403
I bolded the commands to type in Terminal.
Do you by chance have Xcode installed?

Doing either of the bold sudo gem commands on my vanilla Lion install complains that it can't find header files, and googling that, it looks like one needs to install Xcode to get the headers.
 

aristobrat

macrumors G5
Oct 14, 2005
12,292
1,403
Wow, looks like Ruby has been part of the base OS since Tiger, from some of the pages I'm seeing.

I don't mind installing Xcode to get the headers, I've actually been following along (at work) with the Sanford iOS development class that's in iTunes U. Been meaning to put Xcode on at home so I can dink around there too.

Thanks for your help!
 

Mr. Zarniwoop

macrumors 6502a
Jun 9, 2005
751
139
Looking at the results... it did a few things that were interesting.

  • A handful of artist names are in Japanese (I fixed those up manually, there were only 3)
  • Some albums have been broken up, with some of the album names on the tracks named for the single version (I am ok with this, but I can see it not being desirable)
  • Around 20% of songs don't match up to anything in an iTunes Store, even where the store sells a (presumably slightly different) version of the song
 

aristobrat

macrumors G5
Oct 14, 2005
12,292
1,403
Here were my results (with the countries that 0 updates removed):

Code:
Reading 5412 tracks **************
Found 1408 matched tracks
Querying US store for 1408 tracks *************** 839 updated
Querying GB store for 577 tracks ****** 102 updated
Querying AU store for 475 tracks ***** 29 updated
Querying FR store for 446 tracks ***** 23 updated
Querying DE store for 423 tracks ***** 2 updated
Querying CA store for 421 tracks ***** 4 updated
Querying IT store for 417 tracks ***** 5 updated
Querying AT store for 412 tracks ***** 1 updated
Querying BE store for 411 tracks ***** 1 updated
Querying CZ store for 410 tracks ***** 3 updated
Querying DK store for 407 tracks ***** 1 updated
Querying MX store for 406 tracks ***** 6 updated
Querying NL store for 400 tracks **** 1 updated
Couldn't find meatadata for 399 tracks

For anyone curious, it appears to updates these iTunes fields:

Name
Album
Artist
Track Count
Track Number
Genre
Disc Count
Disc Number

Other fields (comments, etc) are left alone.
 

aristobrat

macrumors G5
Oct 14, 2005
12,292
1,403
I'm still confused about how to get this script to work. Can you please outline exactly what needs to be done?
I can tell you how it I did, although there may be an easier way.

1. Download/install Xcode from the App Store. It's free, but it's big.
2. After it's installed, go back up to post #9, and click on the link that goes to the author's tweet. In the tweet, click on the link that goes to the script. At the top right of the script, click the "Direct Link" link. This should download the script in your Downloads folder.
3. Open the Terminal app on your Mac.
4. Type: cd Downloads
and press enter
5. Go back up to post #9 and type the commands in the quote that Mr. Zarniwoop bolded.
 

maclook

macrumors 65816
Nov 2, 2008
1,146
40
Thanks, aristobrat. I've been wanting to try this out so I'm downloading Xcode now. Will report back on how it works out.
 

satchow

macrumors 6502
Jul 11, 2011
467
186
This ruined my metadata. Use at your own risk, or you'll be renumbering tracks and changing albums for the next 4 hours like me.

I appreciate the effort but man this hurts.
 

philipk

macrumors 6502
Jun 11, 2008
438
190
This ruined my metadata. Use at your own risk, or you'll be renumbering tracks and changing albums for the next 4 hours like me.

I appreciate the effort but man this hurts.

Same here.

It split up 320 albums. In one case, an album split into eight parts. Also the tracks renumbered.

Make sure to backup first. I am in the process of using my backup to restore all of my music.

This explains why Apple wisely chose not to tamper with metadata.

We were warned and I don't regret trying.

Philip
 

tburk32

macrumors member
Oct 18, 2011
67
0
Last login: Thu Dec 8 20:05:18 on ttys000
USERNAMEs-MacBook-Air:~ USERNAME$ cd downloads
USERNAMEs-MacBook-Air:downloads USERNAME$ sudo gem install json
Password:
Building native extensions. This could take a while...
Successfully installed json-1.6.3
1 gem installed
Installing ri documentation for json-1.6.3...
Installing RDoc documentation for json-1.6.3...
USERNAMEs-MacBook-Air:downloads USERNAME$ sudo gem install rb-appscript
Building native extensions. This could take a while...
Successfully installed rb-appscript-0.6.1
1 gem installed
Installing ri documentation for rb-appscript-0.6.1...
Installing RDoc documentation for rb-appscript-0.6.1...
USERNAMEs-MacBook-Air:downloads USERNAME$ ruby meta.rb
Reading 5527 tracks **************************************************
Found 5039 matched tracks
Querying US store for 5039 tracks /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:542:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:242:in `open_http'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:518:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:30:in `open'
from meta.rb:85
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/delegate.rb:137:in `each_slice'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/delegate.rb:137:in `each'
from meta.rb:83:in `each_slice'
from meta.rb:83
from meta.rb:80:in `each'
from meta.rb:80
USERNAMEs-MacBook-Air:downloads USERNAME$
Here is what I am getting. It says it times out and it isn't working for me for some reason. Last night I had only 1 song in my library that I ran it on and it worked right away and updated the song. Now it isn't working at all for me. Any suggestions on what I could be doing wrong or what is stopping it from working?

thanks for your help in advance
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.