diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-07 20:14:44 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-07 20:15:02 +0530 |
commit | ecc97af3448423a461f017badd07bb5fa9206f37 (patch) | |
tree | 7764b61d57e29b330cf423cae9a80c2249ee374c | |
parent | 8a0b9322580e6691ee2f137a679120df2eb838d5 (diff) | |
download | hypervideo-pre-ecc97af3448423a461f017badd07bb5fa9206f37.tar.lz hypervideo-pre-ecc97af3448423a461f017badd07bb5fa9206f37.tar.xz hypervideo-pre-ecc97af3448423a461f017badd07bb5fa9206f37.zip |
[youtube] Don't show warning for empty playlist description (Closes #54)
:ci skip dl
-rw-r--r-- | youtube_dlc/extractor/common.py | 2 | ||||
-rw-r--r-- | youtube_dlc/extractor/youtube.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py index 8e6e6f2d9..0304b2133 100644 --- a/youtube_dlc/extractor/common.py +++ b/youtube_dlc/extractor/common.py @@ -975,7 +975,7 @@ class InfoExtractor(object): video_info['id'] = playlist_id if playlist_title: video_info['title'] = playlist_title - if playlist_description: + if playlist_description is not None: video_info['description'] = playlist_description return video_info diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py index d46546e06..fb2668de0 100644 --- a/youtube_dlc/extractor/youtube.py +++ b/youtube_dlc/extractor/youtube.py @@ -2787,7 +2787,7 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor): data, lambda x: x['metadata']['playlistMetadataRenderer'], dict) if renderer: title = renderer.get('title') - description = renderer.get('description') + description = renderer.get('description', '') playlist_id = channel_id tags = renderer.get('keywords', '').split() thumbnails_list = ( |