scanner.py

2.2.1 • Public • Published

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"
}

Readme

Keywords

none

Package Sidebar

Install

npm i scanner.py

Weekly Downloads

1

Version

2.2.1

License

ISC

Unpacked Size

684 kB

Total Files

82

Last publish

Collaborators

  • arielext