aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-08-15 16:30:40 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-08-15 16:30:40 -0700
commite01aa59148ea89ea0d0f03322710cb59c71744db (patch)
tree95a32da061336d0ef4700afeee757178d7075083 /youtube
parent046d7226eaa3087159e64310bfa1b5e359cd2e93 (diff)
parent1ce500b8a22619b4205596024cf7cbb50af7ae42 (diff)
downloadyt-local-e01aa59148ea89ea0d0f03322710cb59c71744db.tar.lz
yt-local-e01aa59148ea89ea0d0f03322710cb59c71744db.tar.xz
yt-local-e01aa59148ea89ea0d0f03322710cb59c71744db.zip
Merge branch 'master' into subscriptions
Diffstat (limited to 'youtube')
-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'