fix isExplicit label for localized instances

This commit is contained in:
sigma67 2021-12-23 12:34:33 +01:00
commit 221cce92ae
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
3 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ def parse_chart_song(data):
'videoId': nav(flex_0, TEXT_RUN + NAVIGATION_VIDEO_ID, True),
'artists': parse_song_artists(data, 1),
'thumbnails': nav(data, THUMBNAILS),
'isExplicit': nav(data, BADGE_LABEL, True) == 'Explicit'
'isExplicit': nav(data, BADGE_LABEL, True) is not None
}
flex_2 = get_flex_column_item(data, 2)
if flex_2 and 'navigationEndpoint' in nav(flex_2, TEXT_RUN):