diff --git a/dsbm/K.I.Z/Hurra die Welt geht unter/Verrückt nach dir.mp3.part b/dsbm/K.I.Z/Hurra die Welt geht unter/Verrückt nach dir.mp3.part deleted file mode 100644 index a6e91af..0000000 Binary files a/dsbm/K.I.Z/Hurra die Welt geht unter/Verrückt nach dir.mp3.part and /dev/null differ diff --git a/src/__pycache__/musify.cpython-310.pyc b/src/__pycache__/musify.cpython-310.pyc index 01549f5..b55aeaf 100644 Binary files a/src/__pycache__/musify.cpython-310.pyc and b/src/__pycache__/musify.cpython-310.pyc differ diff --git a/src/metadata.py b/src/metadata.py index 5e76428..763aaa3 100644 --- a/src/metadata.py +++ b/src/metadata.py @@ -1,12 +1,18 @@ import os.path +import logging import musicbrainzngs import pandas as pd +mb_log = logging.getLogger("musicbrainzngs") +mb_log.setLevel(logging.WARNING) musicbrainzngs.set_useragent("metadata receiver", "0.1", "https://github.com/HeIIow2/music-downloader") KNOWN_KIND_OF_OPTIONS = ["artist", "release", "track"] +def output(msg: str): + print(msg) + def get_elem_from_obj(current_object, keys: list, after_process=lambda x: x): current_object = current_object for key in keys: @@ -61,6 +67,7 @@ class Search: """ metadata_list = [] result = musicbrainzngs.get_artist_by_id(mb_id, includes=["releases"]) + for i, release in enumerate(result["artist"]["release-list"]): metadata_list.extend(self.download_release(release["id"], i))