Regression: Fix error when playlist has no description

This commit is contained in:
James Taylor 2019-08-15 16:30:05 -07:00
parent adc40bc760
commit 1ce500b8a2

View File

@ -101,6 +101,9 @@ def get_playlist_page():
metadata = yt_data_extract.renderer_info(first_page_json['response']['header'])
yt_data_extract.prefix_urls(metadata)
if 'description' not in metadata:
metadata['description'] = ''
video_count = int(metadata['size'].replace(',', ''))
metadata['size'] += ' videos'