Tune Library
NOTICE:I am currently working on a book on plugin development, to be published in August 2012.Therefore, I will not have as much time available to support questions/feature requests on my plugins as I would normally have. I recommend that you read through all comments here, through the forum on the wordpress.org and through the FAQ before asking questions. I will try to answer a few questions on occasions but I cannot guarantee at what frequency this will be. Thank you for your understanding.
This plugin allows users to import the music information from their iTunes Library Library file into their WordPress database. Once imported, they can print the contents of their library to a WordPress page.
My Music section of this site uses Tune Library to generate its contents.
Donations
If you feel generous and really like this plugin, here is a donation link on Paypal:





I'm a tech enthusiast working in the modeling and simulation software industry. I'm also married and the father of two very energetic little girls.






Hi Larry,
Version 1.4 should address the issue that you reported. The Tune Library output will now show up where the [tune-library] shortcode is placed on the page.
Yannick
I get an error message when I click on the Import iTunes Library link.
Connecting to MySQL…Loading iTunes library file… (http://www.jason-saggers.com/wp-content/plugins/tune-library/iTunes Music Library.xml)
Fatal error: Cannot instantiate non-existent class: domdocument in ****wp-contentplugins une-library une-library.php on line 208
My xml file is around 9mb, would that be a problem?
I also get this on the music page that I created.
WordPress database error Table 'jason_wordpress.wp_tracks' doesn't exist for query SELECT min( substring( artist, 1, 1 ) ) as letter FROM wp_tracks where artist != '' made by require, require_once, include, the_content, apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, tune_library_func, tune_library WordPress database error Table 'jason_wordpress.wp_tracks' doesn't exist for query SELECT distinct artist, 'artist' as source FROM wp_tracks where artist != '' and artist like '%' order by artist made by require, require_once, include, the_content, apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, tune_library_func, tune_library
Which I assume is because I haven't imported the xml file correctly.
Hi Jason,
I have imported a larger iTunes file successfully, so I don't think that it is the issue. Something that you might want to try is to remove the spaces in the file name and then trying to import it again.
Let me know if you are still having problems after trying this.
Yannick
Hey,
I've been attempting to get this plugin to work for a while now, had some issues due to PHP keeping it from working but managed to get that all figured out. However, now the plugin appears to 'work', and does nothing. When you upload the file:
Connecting to MySQL…Loading iTunes library file… (http://blog.aethernavale.net/wp-content/plugins/tune-library/iTunesMusicLibrary.xml)
…done
Problem is, nothing has actually occurred. No new tables were added to the SQL databases. Any ideas on what could be causing that issue?
Thanks~
Michael,
I am really puzzled about the fact that no messages were printed and no tables were created. Could you potentially send me your library file via XML?
Yannick
Hi Yannick,
Great plugin! got it working with a test library export and it's really cool. But, came to load my full library and on import library, i get a 404 and only some of the tunes load, seems to do this when import takes a while (a timeout perhaps…?): is there a maximum size for libraries?
I have not really experimented to find the maximum size, although I have loaded some libraries from a few users that were quite large. if you can share your library XML file with me, then I can try to load it on my test site.
Hi Yannick,
I had installed the iTunes plugin and could have swore that it was working properly, but now, it seems that whenever I click on a letter, it doesn't skip to that letter, instead it just appends a # at the end of the address. If I disable the AJAX function, I get a link to the letter, but when I click on artist names, it doesn't display the album list. I'd love to see if we can get this squared away as I absolutely LOVE your plugin and haven't found anything else that provides this type of functionality.
I can send you a download link if you send me an email or tweet me; it's a 16mb file if that helps.
Thanks for looking into this
Just a quick note, the plugin doesn't seem to recognize any music added to my library after upgrading to iTunes 9.0. i don't know if this is an issue with the plugin, or an issue in the way that the new version of itunes writes the xml. i tried uploading the xml file today, but see no new additions. hopefully this can be fixed as i love your plugin.
Hi Rob,
Thanks for the comment. I will investigate this issue in the coming week. I was busy working on a major update to one of my other plugins which I released yesterday.
I will keep you posted.
Yannick,
Looking forward to it!
any progress?