Fix trackCount for liked songs playlist (closes #120)
This commit is contained in:
parent
0abbed70ef
commit
cf6596caed
1 changed files with 2 additions and 5 deletions
|
|
@ -88,13 +88,10 @@ class PlaylistsMixin:
|
|||
if run_count > 3:
|
||||
playlist['year'] = nav(header, SUBTITLE3)
|
||||
|
||||
song_count = to_int(
|
||||
unicodedata.normalize("NFKD", header['secondSubtitle']['runs'][0]['text']))
|
||||
if len(header['secondSubtitle']['runs']) > 1:
|
||||
song_count = to_int(
|
||||
unicodedata.normalize("NFKD", header['secondSubtitle']['runs'][0]['text']))
|
||||
playlist['duration'] = header['secondSubtitle']['runs'][2]['text']
|
||||
else:
|
||||
playlist['duration'] = header['secondSubtitle']['runs'][0]['text']
|
||||
song_count = limit
|
||||
|
||||
playlist['trackCount'] = song_count
|
||||
playlist['tracks'] = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue