sdslabs/muzi-scanner

Name: muzi-scanner

Owner: SDSLabs

Description: null

Created: 2016-10-26 13:50:18.0

Updated: 2017-11-13 14:06:05.0

Pushed: 2017-12-17 14:13:24.0

Homepage: null

Size: 64

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Muzi Scanner

This project aims to populate a database with attributes of various songs, given the path to songs root directory. The songs can be of either mp3 or mp4 or m4a format.

Songs are placed in a hierarchical directory structure inside the songs root directory as follows:

So, a song “Problem” by Ariana Grande will be in the folder as “Arian Grande > My Everything > Problem.mp3” with rest of “My Everything” album's songs in it.

Prerequisites

Install following prerequisites:

Libraries used:

Specified in requirements.txt

p install -r requirements.txt

Create a data.json file in the project root. It should look something like below:


"DEFAULT": {
    "lastfm_api_key": "api_key",
    "lastfm_api_secret": "api_secret",
    "db_backend": "mysql",
    "db_name": "test",
    "db_user_name": "test",
    "db_password": "password",
    "db_host": "local"
},
"PRODUCTION":{
}

Usage
Note:

The below command is for development purpose only

thon createdb.py

Scanner Usage Examples

thon scan.py PATH/to/songs/root/ ~/artist_cover_image_directory/ ~/artist_thumbnail_directory/ ~/albums_thumb_image_directory/

To fix missing thumbnails/coverpics:

thon fixmissing.py ~/artist_cover_image_directory/ ~/artist_thumbnail_directory/ ~/albums_thumb_image_directory/

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.