Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: HTML Album List (Read 4838 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

HTML Album List

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


 

HTML Album List

Reply #2
Mp3tag can also export to whatever you want if you create a template, by the way.

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.