get_album: add other versions (closes #279)

also added isExplicit label to all album type results
This commit is contained in:
sigma67 2022-10-01 14:56:59 +02:00
commit dd5d753432
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 24 additions and 6 deletions

View file

@ -205,7 +205,8 @@ def parse_album(result):
'title': nav(result, TITLE_TEXT),
'year': nav(result, SUBTITLE2, True),
'browseId': nav(result, TITLE + NAVIGATION_BROWSE_ID),
'thumbnails': nav(result, THUMBNAIL_RENDERER)
'thumbnails': nav(result, THUMBNAIL_RENDERER),
'isExplicit': nav(result, SUBTITLE_BADGE_LABEL, True) is not None
}