Standalone python music scraper
Posted: Thu Oct 22, 2015 9:56 pm
Hi all,
Since i got increasingly frustrated with the lack of music orientated Fanart.tv plugins in Kodi\XBMC, and the total instability of the few existing plugins, I decided to slab a quick script together that will iterate over your music collection and download the cover.jpg & cdart.png from Fanart.tv.
Readme: https://bitbucket.org/kamaradski/fanart ... r/overview
Download: https://bitbucket.org/kamaradski/fanart ... /downloads
KR
Kamaradski
Since i got increasingly frustrated with the lack of music orientated Fanart.tv plugins in Kodi\XBMC, and the total instability of the few existing plugins, I decided to slab a quick script together that will iterate over your music collection and download the cover.jpg & cdart.png from Fanart.tv.
What is this ?
This script is a stand alone python scraper that will read MusicBrainz tags of your MP3 and FLAC files, and fetch the following files from the Fanart.tv database:
- Cover artwork
- CDart Artwork
Dependencies:
- Python
- Linux (might work under Windows too, but totally untested)
- Mutagen libs (https://bitbucket.org/lazka/mutagen)
- You music collection is tagged with at least "MusicBrainz Album ID"
- Each album has it's own folder
I hope this makes downloading the content you want a lot easier (just like it did for me)Current features & Limitations:
Project state: LIVE: Stable as of V1.5.2
Limitations:
- Support for Mp3 & FLAC only
- Support for cover.jpg & cdart.png only
- Relies only on MusicBrainz tags
- Downloads only from Fanart.tv
Features:
Logging:
- Debug file-logging (Log every action to file in real-time)
- Log missing artwork to file (after completing script-run)
- Log downloaded artwork to file (after completing script-run)
- Log session statistics to file (after completing script-run)
Download:
- Download cover-art to cover.jpg
- Download CD-art to cdart.png (Will try to match specific disk numbers, or fall back to first result)
- Reduced API calls by skipping albums that already contain a full set of artwork
- Support for Fanart.tv user API keys
- Supports MusicBrainz tags, and MusicBrainz API
- Supports Fanart.tv API
- Supports FLAC & MP3
Readme: https://bitbucket.org/kamaradski/fanart ... r/overview
Download: https://bitbucket.org/kamaradski/fanart ... /downloads
KR
Kamaradski