diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-08-15 16:30:40 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-08-15 16:30:40 -0700 |
commit | e01aa59148ea89ea0d0f03322710cb59c71744db (patch) | |
tree | 95a32da061336d0ef4700afeee757178d7075083 | |
parent | 046d7226eaa3087159e64310bfa1b5e359cd2e93 (diff) | |
parent | 1ce500b8a22619b4205596024cf7cbb50af7ae42 (diff) | |
download | yt-local-e01aa59148ea89ea0d0f03322710cb59c71744db.tar.lz yt-local-e01aa59148ea89ea0d0f03322710cb59c71744db.tar.xz yt-local-e01aa59148ea89ea0d0f03322710cb59c71744db.zip |
Merge branch 'master' into subscriptions
-rw-r--r-- | youtube/playlist.py | 3 |
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' |