mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-29 14:35:29 -04:00
Merge branch 'dev' of https://github.com/nathom/streamrip into dev
This commit is contained in:
commit
b9ca39c869
1 changed files with 6 additions and 1 deletions
|
@ -174,7 +174,12 @@ class TrackMetadata:
|
|||
self.date = resp.get("releaseDate")
|
||||
|
||||
self.copyright = resp.get("copyright")
|
||||
self.albumartist = safe_get(resp, "artist", "name")
|
||||
|
||||
if artists := resp.get("artists"):
|
||||
self.albumartist = ", ".join(a["name"] for a in artists)
|
||||
else:
|
||||
self.albumartist = safe_get(resp, "artist", "name")
|
||||
|
||||
self.disctotal = resp.get("numberOfVolumes", 1)
|
||||
self.isrc = resp.get("isrc")
|
||||
# label not returned by API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue