Add isExplicit key to search results, update example
This commit is contained in:
parent
1c664b6799
commit
7e84788b77
2 changed files with 68 additions and 10 deletions
|
|
@ -115,6 +115,9 @@ class Parser:
|
|||
search_result['releaseDate'] = runs[2]
|
||||
search_result['resultType'] = 'album'
|
||||
|
||||
if resultType in ['song', 'album']:
|
||||
search_result['isExplicit'] = nav(data, BADGE_LABEL, True) == 'Explicit'
|
||||
|
||||
search_result['thumbnails'] = nav(data, THUMBNAILS)
|
||||
search_results.append(search_result)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue