Skip to content

lucienimmink/scanner.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scanner.py

A generic mp3 scanner written in python3. The output is a JSON file which can be used to display the collection. One of the possible programs that can use this JSON is JSMusicDB The aim of this program is to be as fast as possible; so no incremental updates are available.

The script will continue to run after the initial scan; it will watch the folder and add the new data in an increment file; Every time the script is rerun the increment file is nullified.

Output format

The output JSON is 1 array with objects holding the track info

Track node

{
  "album": "Adrenaline Mob",
  "albumartist": null,
  "albumgain": -9.9,
  "artist": "Adrenaline Mob",
  "disc": null,
  "duration": 278000,
  "id": "QWRyZW5hbGluZSBNb2JBZHJlbmFsaW5lIE1vYjFQc3ljaG9zYW5l",
  "modified": 1477837993913.5518,
  "number": 1,
  "path": "Adrenaline Mob/Adrenaline Mob - Adrenaline Mob EP/Adrenaline Mob - Adrenaline Mob EP - 01 - Psychosane.mp3",
  "title": "Psychosane",
  "trackgain": -12.3,
  "year": "2011",
  "type": "mp3"
}

About

A generic python based music scanner (mp3, mp4/aac and flac are supported).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages