My personal media library
Python HTML JavaScript Shell Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
contrib
debian
media
musicdb
templates
.coveralls.yml
.gitignore
.travis.yml
COPYING
README.rst
TODO
requirements.txt
setup.py

README.rst

musicdb

https://api.travis-ci.org/lamby/musicdb.svg?branch=master https://coveralls.io/repos/lamby/musicdb/badge.svg?branch=master&service=github https://requires.io/github/musicdb/musicdb/requirements.svg?branch=master

This is my personal media library which I wrote after being frustrated with other solutions which use pre-1970s database technology.

The feature-set is mostly geared towards accurately storing western classical music circa 1500 to the present day. It also supports albums ("non-classical") too with correct support for multiple CDs.

It is entirely web-based and generates XSPF files pointing to the actual files.

Local database setup

  1. Create PostgreSQL user with id matching your UNIX username:

    $ sudo -u postgres createuser $(whoami) -SDR
    
  2. Create a database owned by this user:

    $ sudo -u postgres createdb -E UTF-8 -O $(whoami) musicdb
    
  3. Check we can connect to this database:

    $ /usr/bin/psql musicdb
    psql (9.1.2)
    Type "help" for help.
    
    musicdb=> \q
    

Syncing with the live site (lamby only)

Sync database:

$ ./manage.py sync_database