mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-17 16:45:13 -04:00
Implement #47
This commit is contained in:
parent
4d4596da6d
commit
38c79d79b0
2 changed files with 4 additions and 1 deletions
|
@ -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}"
|
||||
|
|
|
@ -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")
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue