Skip to content

PartiPirate/radio-adder

Repository files navigation

radio-adder

Dependance

to read and write the audio tags (mp3, flac, ...)

Instal (debian / ubuntu)

apt install python3-dev libtag1-dev

pip3 install pytaglib

to identify musics.

Install

pip3 install pyacoustid

used by pyacoustid

Install (debian / ubuntu)

apt install ffmpeg

Install

pip3 install mysql-connector-python

to get the type of the files, and check if is a music file.

Install

pip3 install filetype

Use

./radio-adder.py [Directory]

[Directory] : the music directory

Settings

create a settings.py file with this variables :

display = "short" # all - short - error - none

acoustIDToken = ""

webServiceURL = "https://127.0.0.1/"
webServiceRacinePath = "/var/www/html/"

bddHost 	= "127.0.0.1"
bdduser 	= "user"
bddPassword = "password"
bddName 	= "name"

retagFile = True
sortFile = True
removeUselessFileAndFolder = True
removeNotFoundFileInDB = True

updateDirection = "DBtoFile"

forceAcoustID = False

display

Is the detail level on the displaying information.

  • none : no display
  • error : just error
  • short : just short info for each music file (tag state, db state) + error
  • all : all details.

acoustIDToken

the token of the acoustid API, you can create our own on Acoustid web site, just folow "Register your application" link.

webServiceURL

webServiceRacinePath

bddHost

the address of your MySQL service.

bdduser

the user of your MySQL service.

bddPassword

the password of your MySQL service.

bddName

the name of your MySQL database.

retagFile

Activate writing the music tags.

sortFile

Active the auto sorting tool. move the file in Artist/Album/Disc.TrackNumber - Title.mp3

removeUselessFileAndFolder

Active the "remove useless" option Remove empty folders and non-music files.

removeNotFoundFileInDB

Remove database rows where music file not existing.

updateDirection

Chose if the file update direction.

  • DBtoFile : the file tags are update using the DB.
  • FiletoDB : the DB are update using file tags.

For file not in the DB, the direction is always in File to DB direction.

forceAcoustID

Force to recognize music using AcoustID on every files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published