Skip to content

Instantly share code, notes, and snippets.

@8h2a
8h2a / guess_media.py
Last active January 26, 2019 16:28
beets-guess-media
"""
Based on bitdepths/samplerates and (EAC/XLD) log-files,
determine if the media is likely a CD or likely not a CD.
Additionally checks the log files for a TOC,
and tries to get the release ids from musicbrainz.
"""
from beets.plugins import BeetsPlugin
from beets.autotag import TrackInfo
from beets.autotag import hooks