aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/playlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/playlist.py')
-rw-r--r--youtube/playlist.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/playlist.py b/youtube/playlist.py
index 5df7074..3e5b0d2 100644
--- a/youtube/playlist.py
+++ b/youtube/playlist.py
@@ -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'