fix isExplicit label for localized instances
This commit is contained in:
parent
3043116d69
commit
221cce92ae
3 changed files with 3 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue