Yannick's Corner

WordPress Plugins, Plugin Development Cookbook and random thoughts

Tune Library

Allow visitors to see a full listing of your entire iTunes music collection

This plugin import the music information from your iTunes Library into WordPress. Once imported, you can print the contents of your 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:

PayPal-Donate-Button-PNG-HD

117 thoughts on “Tune Library

    1. Hi Stuart, Can you check in your WordPress database if you have a table with the name wp_tracks (or potentially prefix_tracks) and if there are any records in that table?

      Like

  1. Hello – it's been a while since I've installed and used tune library, but I seem to recall a version that did a good job caching the library list and rendering the page very quickly. Seems that with this installation, the plug-in needs to parse the entire xml file each time the page loads. My xml file is 20 gb btw. Any ideas? Thanks. – Larry

    Like

    1. Hi Larry. No, there was no caching functionality in Link Library. The only thing that can help render pages faster is to check the options "Filter artists by letter and show alphabetical navigation" and "Use AJAX Queries (Useful for larger music collections)".

      Like

    1. Stuart, Sorry for the lack of reply. I am jumping between a bunch of projects and trying to keep up with all user requests at the same time. I am kind of stumped on this one. Could you potentially send me a copy of your iTunes XML file so that I could try to upload it to my test server and see if I get the same problem? Use the Contact Form on the site to tell me where I can get the file. It would also be helpful to get a screenshot of your configuration to see if anything is out of place.

      Like

  2. Hey Yannick, just wanted to let you know that I figured out what my problem was. I needed to go through and edit the properties of all the mp3's for those time life entries. I spent the last 4 days fixing my entire collection and now tune library is working like it is supposed to. thanks for lookin at the files I sent.

    Like

  3. I love your plugin. I was wondering if there was a way to exclude the albums. I am building a site for a Karaoke company and they want a list of artists and songs. There are no album names. Just expand the artists and you would see the song list.

    Let me know if this can be done, thanks!

    Like

    1. No, this is not possible at this time. I might add this capability down the road but that definitely won't happen until the new year.

      Like

    2. Did you ever figure out a way to do this? I’m doing a similar task for a music booking company and would like to be able to post an actionable online song list. Song, original artist, genre and this company’s band/artist name that would cover the song. Thanks!

      Like

  4. Hello, having trouble importing a large itunes library (13,000 + tracks). It works ok when using a smaller library from my laptop. Are their any limits, or have you any suggestions

    Thanks Paul

    Like

    1. Hi Paul,

      Well, PHP has a configuration setting that indicates the maximum memory size that it will be able to allocate to process data. If you have access to that setting, then try to increase it.

      Yannick

      Like

  5. Love the look of the plugin but am having difficulty getting it to work properly.
    I had no luck importing my 20MB itunes library containing 15,000+ songs. I was getting an error saying “Filename cannot be empty” after it fried to upload the file for a few minutes. So I figured the library was too large for it to handle it all, so I edited it down to a much smaller size and tried again. This time is said that the import was successful, yet no items are returned on the page I’m using.

    So next I converted the information I wanted out of iTunes into the CSV format as described in the plugin. The filesize was a much more manageable 1.5MB and seemed to import fine, the problem is that it only displays one entry from the CSV file, seemed to always return the song on the second line of the file.

    Any ideas? Thanks.

    Like

    1. Hi David. Sorry for the late reply. Have been very busy between work and home life. Can you send me the CSV file that you were trying to import so that I could run some tests in my development environment?

      Like

  6. Hi there.
    I have a question, WinAmp has an export for iTunes XML format. Do you know if this works with your iTunes plugin? Also if that should work, when I upload the file from the settings area nothing happens after it completes the upload. I would try importing the file from a directory on the host but there is no way to do that in there. Any suggestions?

    Like

    1. Just wanted to add, wp_tracks is empty and it does not appear to be saving settings, example if I set it to show Expand/Collapse Icon Color black it won’t keep it. I also disabled, deleted, re-uploaded the plugin and activated it to try again. Same results.

      Like

      1. Hi Shawn, can you send me a sample XML file produced by WinAmp so that I could run some tests with it here on my end?

        Like

      2. Shawn, I just issued version 1.5.1 to fix the problem. The iTunes import was actually broke since I had released 1.5. I am surprised that no one else mentioned this to me.

        Like

  7. OK I am stumped. I’ve tried using iTunes to import the XML and I’ve used a program called Mp3Tag to make a CVS and i always end up with this error
    with the XML it’s on line 202, and CVS line 242

    Warning: fopen() [function.fopen]: Filename cannot be empty in /home/killian/public_html/wp-content/plugins/tune-library/tune-library.php on line 242

    and hints you can give me?

    Like

    1. Hi Shane, well, first of all, Tune Library cannot import any CSV file from third-party applications. it can only accept CSV data that follows the template file that is provided in the plugin directory. Secondly, the error that you are getting seems to indicate that you did not browse to the CSV file location using the Browse… button before pressing “Import CSV Tune List”.

      Like

  8. Hi Yannick, I must not be getting somethin on the installation here on wordpress with tune-library. I added the line
    [tune-library] to a new page in wordpress and uploaded the xml playlist. It says three songs uploaded but i dont see anything when i try to look at it. What am i doing wrong?

    Like

    1. Can you give me the address to the site so I can see if any output comes out? Also, can you check in your database if the tracks table got created and if there is data in the table? Something else to try would be if you send me your iTunes XML file by using the contact form on my site so I could see why this is not coming up.

      Like

  9. Hi Yannick, I’m setting up a all new Homepage for a DJ, would like to use your great plugin, but I have problems importing bigger Library? I get this message: “Warning: fopen() [function.fopen]: Filename cannot be empty in /wp-content/plugins/tune-library/tune-library.php on line 202
    File not found” I have successfully imported one smaller library with no problem:-)

    Like

    1. Hi Jesper, There is a good chance that the size of your file is exceeding the maximum file size allowed for uploads on your server. To find out, install a plugin like phpinfo (http://wordpress.org/extend/plugins/phpinfo/) and look at the maximum file size. The default setting is usually around 6-8 MB. If the file you are trying to upload is bigger, it won’t work. You would need to look at getting that number increased. Some web hosts let you do it yourself. In other cases, they need to configure it for you.

      Let me know if this helps.

      Like

      1. thanks for your reply, but I think it must be something else, I have my own server with this config: max_execution_time: 30
        max_input_time: -1
        file_uploads: 1
        upload_max_filesize: 100M
        post_max_size: 100M
        register_globals: 0
        safe_mode: 0
        allow_url_fopen: 0
        eaccelerator.enable:

        Like

    1. Tune Library is only designed to let you display a list tree of the music you own / like. It is not meant to let you play music files.

      Like

  10. I have tried to use Tune Library and have uploaded a csv file into my database as I couldn’t get it to import any other way. I have used the format suggested and I do not get the output that I thought I would. I know there are some items that need deleting from the database but I am not getting the output by Artist Any ideas?

    Like

    1. Hi Tracey, Can you give me a link to the page where you have tried to use Tune Library so I can see what output you are getting?

      Like

  11. Hi Yannick!

    Couldnt believe it when I found your plug-in, I’m a DJ and this is perfect concept!

    The only thing is I upload the XML playlist fine and put in the [tune-library] code in a wordpress page and I get this:

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 12613934 bytes) in /home/sydneydj/public_html/wp-includes/shortcodes.php on line 151

    Hope you can help!

    Like

    1. Hi Michael, How much music did you load into Tune Library? I think that the problem is that the plugin has too much data to deal with right now. That being said, can you try to turn on the ‘Use AJAX queries option’ and ‘Filter artists by letter and show alphabetical navigation’ options?

      Like

  12. Hi Yannick,

    I’m trying to make tune-library plugin to work in ajax mode with WP 3.3.1. The list of artists loads fine but when any item is clicked nothing happens. There’s no JS errors on the console but it looks like onClick events aren’t intercepted, page just scrolls up to the top. You can take a look at it here _http_:// wp.oo2.be/imusic/
    There’s no active plugins except tune-library.

    Thanks,
    Alex

    Like

    1. Hi Alex, I can’t seem to access the imusic page link that you put here. Can you check if anything is missing? The AJAX loading is working properly on my personal site. That being said, if I get to see your page, perhaps running Firebug on it will reveal more.

      Like

  13. Yannick,

    First of all, thank you so much for the work you’ve put in to this plugin. I think the concept is awesome, I just haven’t been able to get it to work. Please help. I place the [tune-library] onto a page but nothing shows up.

    I have installed the plugin to Word Press and activated it, then included [tune-library] onto a page that I wanted it to go into:

    http://www.soentertaining.com/music/

    and into a new page with no other content other than [tune-library]:

    http://www.soentertaining.com/tune-library/

    I tried uploaded my library file as an xml and as a csv (deleting the previous database using the “delete imported library” link in the Tune-Library settings page before re-loading.

    Thanks,
    Roy

    Like

    1. Hi Roy, before deleting the contents of the tracks table, did you look to check if any records had been loaded into the table? I see that basic output from Tune Library is making it onto the page, but no content, indicating that it can’t find data in the tracks table.

      Like

      1. Thanks so much for the quick response. Where would I find the tracks table? I can’t find any kind of table under the pluginstune-library directory. Is it somewhere else?

        Roy

        Like

      2. So the row count is 0. And after the import xml script is done running, there is no message saying how many records were imported. So i guess the problem is getting the information into the DB.

        Like

    1. That’s one way to do it. Although not as interactive and immersive as having the user parse your music collection right from your site.

      Like

  14. this seems like a great plugin but is it working on the currently wordpress version as it seems that i cannot load the csv list, nothing shows on the output.

    Like

    1. Hi Sam, Just to be sure, you are trying to import files with a csv file in WordPress 3.4.x, right? I just tested in 3.4.2 and it worked perfectly. Did you try importing the original template or only a modified version of the file with your own contents. If the latter, how many entries did you have in the file? How large was it?

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website at WordPress.com
Get started
%d bloggers like this: