Quantcast

Forums | MacLife

You are not logged in.

#1 2005-05-31 4:46 pm

reh
shroom goon
Registered: 2002-04-19
Posts: 2311
Website

iTunes library to website list "app"

I didn't care for the websites that other "iTunes to website" programs generated. I wanted a nested list setup instead of repeating everything on each line.

So I created an MS Excel spreadsheet that takes an exported iTunes library and creates the (XHTML 1.1 Strict valid) HTML necessary to display your artist/album/song info in a nested list format. Here's an example.

It works pretty slick with the notable exception of special characters in the song names. Those will generate errors with the W3C validator unless they're replaced with the appropriate HTML symbol code thing.

Is this something that anyone else here would be interested in using?

Last edited by reh (2006-05-20 5:54 pm)

Offline

 

#2 2005-06-01 7:57 am

Fracai
Evacipate
From: St. Elsewhere
Registered: 2000-05-25
Posts: 2841

Re: iTunes library to website list "app"

oh hell yes!  I'd love to use that.


   i am jack's amusing sig file
        http://alum.wpi.edu/~arno/i/s.png
Satellite Lot :: Second Summer

Offline

 

#3 2005-06-01 11:52 am

reh
shroom goon
Registered: 2002-04-19
Posts: 2311
Website

Re: iTunes library to website list "app"

http://www.herskal.com/apps/TunesToXHTML.zip

I even gave it a name. smile

TunesToXHTML Readme wrote:

TunesToXHTML version 0.2
Released 1 June 2005
By Ryan E. Hannan, herskal.com

NOTE
This "software" is not for the feint of heart. It requires some skill with spreadsheets and HTML.

SUMMARY
This is a Microsoft Excel spreadsheet that converts a list of artists, albums, and songs to an XHTML 1.1 Strict compliant list (see BUGS below) for use on a webpage. The output generated is in this format:

    Artist
        Album
            Song
            Song
        Album
            Song
    Artist
        Album
            Song
            Song
            Song   

Each song is a link to a search for that track on the iTunes Music Store. Visit herskal.com/music for an example.

SYSTEM REQUIREMENTS
This spreadsheet should work on almost any version of Microsoft Excel for any operating system. However, I've only tested in on MS Excel v.X for Mac OS X. It may work on other spreadsheet applications, but compatibility is not guaranteed.

INSTALLATION AND USE
- Uncompress the zip file.
- Copy TunesToXHTML.xls to your Documents folder or preferred location.
- Generate a list of your music's artists, albums, and songs from your music playing application.
- Open this list in Excel and paste it into the corresponding TunesToXHTML columns.
- If you have more that 2500 songs, be sure to copy the formulas in columns "D" through "M" down to your last song (most of these columns are hidden).
- Copy the content of the cells in Column "E" into your webpage.
- Be sure to add an <ol> or <ul> to the top of the list and a </ol> or </ul> to the bottom of the list in your webpage.
- Check the webpage for special characters that may cause problems (see BUGS). The iTunes Music Store links require these characters to be in hexadecimal form (ie %26). Special characters being displayed on your webpage need to be in the form of a decimal ASCII code (ie & #38;).

BUGS
- Many special characters will cause errors on the W3C's XHTML validator. The spreadsheet will account for spaces and ampersands, but no other special characters. I have been replacing the few that crop up by hand in the code.

LICENSE
You may distribute or alter this spreadsheet. My only request is that you please retain my credit somewhere in this document or the spreadsheet. If you're feeling really generous, you could include a comment in your website's source smile .

Last edited by reh (2006-05-20 5:55 pm)

Offline

 

#4 2005-06-01 12:57 pm

Fracai
Evacipate
From: St. Elsewhere
Registered: 2000-05-25
Posts: 2841

Re: iTunes library to website list "app"

sweet, i can't wait to try this out.


   i am jack's amusing sig file
        http://alum.wpi.edu/~arno/i/s.png
Satellite Lot :: Second Summer

Offline

 

#5 2005-06-01 1:02 pm

reh
shroom goon
Registered: 2002-04-19
Posts: 2311
Website

Re: iTunes library to website list "app"

In case you don't notice it, I should note that I've assigned a CSS class of "musicAlbums" to the album list and a CSS class of "musicSongs" to the song list.

Offline

 

#6 2005-06-01 2:03 pm

reh
shroom goon
Registered: 2002-04-19
Posts: 2311
Website

Re: iTunes library to website list "app"

I found a fairly easy fix for most of the special character problems. When you export a "song list" from iTunes, it saves it as a text file with all of the special characters (such as M

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson