[youtube] Don't show warning for empty playlist description (Closes #54)

:ci skip dl
This commit is contained in:
pukkandan 2021-02-07 20:14:44 +05:30
parent 8a0b932258
commit ecc97af344
2 changed files with 2 additions and 2 deletions

View file

@ -975,7 +975,7 @@ def playlist_result(entries, playlist_id=None, playlist_title=None, playlist_des
video_info['id'] = playlist_id video_info['id'] = playlist_id
if playlist_title: if playlist_title:
video_info['title'] = playlist_title video_info['title'] = playlist_title
if playlist_description: if playlist_description is not None:
video_info['description'] = playlist_description video_info['description'] = playlist_description
return video_info return video_info

View file

@ -2787,7 +2787,7 @@ def _extract_from_tabs(self, item_id, webpage, data, tabs, identity_token):
data, lambda x: x['metadata']['playlistMetadataRenderer'], dict) data, lambda x: x['metadata']['playlistMetadataRenderer'], dict)
if renderer: if renderer:
title = renderer.get('title') title = renderer.get('title')
description = renderer.get('description') description = renderer.get('description', '')
playlist_id = channel_id playlist_id = channel_id
tags = renderer.get('keywords', '').split() tags = renderer.get('keywords', '').split()
thumbnails_list = ( thumbnails_list = (