IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
HTML Album List, Couldn't find one on the web so I wrote one
karit
post Dec 26 2006, 00:20
Post #1





Group: Members
Posts: 36
Joined: 25-January 06
Member No.: 27332



I am currently ripping my music collection using react (great application by the way). I was then having a look around for something that could make me an HTML album list. I couldn't really find one so I wrote a script for myself and I am happy to share it. The script is written in python because I wanted an excuse to play with python.

It will use the folder.jpg that you have and read the metadata in flac and mp3 files. Itshould be easy enough to add support for other file types given the great Mutagen tag reading python library

Example album list output http://karit.geek.nz/album_list/album_list.html (I haven't uploaded the folder.jpg so the images don't show up)

Files needed:
The CSS file: http://karit.geek.nz/album_list/album_list.css
The python script file: http://karit.geek.nz/album_list/album_list.css

Python Installers:
Python 2.5 http://www.python.org/download/
Mutagen http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen Read the README for how to install

My music is set up like this
f:\music\album_list.html
f:\music\album_list.py
f:\music\flac\artist\album\folder.jpg
f:\music\flac\artist\album\song.flac
f:\music\mp3\artist\album\folder.jpg
f:\music\mp3\artist\album\song.mp3

To make it work:
Line 11: Tell it where you base music directory is. In my case 'f:\\music\\'
Line 13: Tell the difference between you base music dir and the base for the artist directories. In my case 'flac\\'. If your msuic root directory is the same as where you want the output just make an empty string i.e. ''

Any questions or ideas please feel free to ask

David
Go to the top of the page
+Quote Post
Sebastian Mares
post Dec 26 2006, 09:53
Post #2





Group: Members
Posts: 3629
Joined: 14-May 03
From: Bad Herrenalb
Member No.: 6613



Mp3tag can also export to whatever you want if you create a template, by the way. smile.gif


--------------------
http://listening-tests.hydrogenaudio.org/sebastian/
Go to the top of the page
+Quote Post
karit
post Dec 26 2006, 11:12
Post #3





Group: Members
Posts: 36
Joined: 25-January 06
Member No.: 27332



QUOTE (Sebastian Mares @ Dec 26 2006, 21:53) *
Mp3tag can also export to whatever you want if you create a template, by the way. smile.gif

Thanks

Hmm have used MP3Tag for a while never noticed that feature. Maybe I should have asked first. Ohh well I have learnt the basics of another scripting language so in the greater scheme of things I can't really complain.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 1st September 2014 - 20:32