Regression: Fix error when playlist has no description
This commit is contained in:
parent
adc40bc760
commit
1ce500b8a2
@ -101,6 +101,9 @@ def get_playlist_page():
|
|||||||
metadata = yt_data_extract.renderer_info(first_page_json['response']['header'])
|
metadata = yt_data_extract.renderer_info(first_page_json['response']['header'])
|
||||||
yt_data_extract.prefix_urls(metadata)
|
yt_data_extract.prefix_urls(metadata)
|
||||||
|
|
||||||
|
if 'description' not in metadata:
|
||||||
|
metadata['description'] = ''
|
||||||
|
|
||||||
video_count = int(metadata['size'].replace(',', ''))
|
video_count = int(metadata['size'].replace(',', ''))
|
||||||
metadata['size'] += ' videos'
|
metadata['size'] += ' videos'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user