mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-10-31 15:54:08 +09:00
[youtube] Don't show warning for empty playlist description (Closes #54)
:ci skip dl
This commit is contained in:
1 parent
8a0b932258
commit
ecc97af344
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in new issue
Block a user