diff --git a/streamrip/core.py b/streamrip/core.py index fd82fea..6bf1c1a 100644 --- a/streamrip/core.py +++ b/streamrip/core.py @@ -371,7 +371,8 @@ class MusicDL(list): "{albumartist} - {title}\n" "Released on {year}\n{tracktotal} tracks\n" "{bit_depth} bit / {sampling_rate} Hz\n" - "Version: {version}" + "Version: {version}\n" + "Genre: {genre}" ) elif isinstance(media, Artist): fmt = "{name}" diff --git a/streamrip/downloader.py b/streamrip/downloader.py index 3c0ba0f..df2e987 100644 --- a/streamrip/downloader.py +++ b/streamrip/downloader.py @@ -929,6 +929,7 @@ class Album(Tracklist): resp["image"]["original"] = resp["image"]["large"].replace("600", "org") + # TODO: combine these with TrackMetadata objects return { "id": resp.get("id"), "title": resp.get("title"), @@ -940,6 +941,7 @@ class Album(Tracklist): "release_type": resp.get("release_type", "album"), "cover_urls": resp.get("image"), "streamable": resp.get("streamable"), + "genre": safe_get(resp, 'genre', 'name'), "quality": get_quality_id( resp.get("maximum_bit_depth"), resp.get("maximum_sampling_rate") ),