GithubHelp home page GithubHelp logo

jonike / music_library_parser Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 126.54 MB

Extract '.mp3', '.mp4', '.flac', and '.wma' tag data to Excel and/or MongoDB

License: MIT License

Python 88.49% Dockerfile 0.64% Shell 1.51% HTML 9.36%

music_library_parser's Introduction

Music Library Reporting

Build Status License

Python v3.8 script to Extract FLAC/MP3/M4A Tags:

Runs media tag dump to extract specific information about each music file and exports desired metadata to Excel report '.xlsx'.

Example Output:

Screenshot

Filename Encoding:

Screenshot

Media Tag Status:

Screenshot

Tested On:

  • Ubuntu 18.04 LTS (Bionic Beaver)
  • Ubuntu 20.04 LTS (Focal Fossa)
  • CentOS 8 (RHEL)
  • Windows 10 version 2004

Custom Genres

def build_genre_dictionary() -> dict:
    genre_dict = OrderedDict()
    genre_dict['Arcade Fire']='Indie-Rock'
    genre_dict['Beethoven']='Classical'
    genre_dict['Interpol']='Post-Punk-Revival'
    genre_dict['M. Ward']='Indie-Rock'
    genre_dict['Massive Attack']='Trip-Hop'
    genre_dict['Mazzy Star']='Alternative'
    genre_dict['Patsy Cline']='Rockabilly'
    genre_dict['Ravel']='Classical'
    genre_dict['Rimsky-Korsakov']='Classical'
    genre_dict['The Fall']='Post-Punk'
    genre_dict['Sallie Ford & The Sound Outside'] = 'Rockabilly'
    ...

Music Tag Resources:

Optional:

# start MongoDB in docker
docker-compose up --build
docker ps
docker-compose ps
docker exec -it {CONTAINER_ID} /bin/bash
docker-compose run media_parser sh -c "python /media_parser/show_installed_pkgs.py"
docker-compose run media_parser sh -c "python /media_parser/create_media_report.py"
# once docker is up, run scripts from PyCharm IDE on host
python ./media_parser/insert_media_mongodb.py -p=27017
python ./media_parser/db/postgres_etl.py -p=5432
# hit CTRL-C to exit MongoDB in docker
docker-compose down --remove-orphans
sudo sed -i 's/port: 27017/port: 27018/g' /etc/mongod.conf
sudo service mongod restart
sudo lsof -iTCP -sTCP:LISTEN | grep mongod
systemctl status mongod
mongo admin --eval 'db.createUser({user:"run_admin_run",pwd:"run_pass_run",roles:["dbAdminAnyDatabase"]});'

License:

MIT License

music_library_parser's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.