mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
playlist_result no longer adds kwarg values that contain None
This commit is contained in:
parent
9d9d429fa4
commit
8385c8d047
1 changed files with 2 additions and 1 deletions
|
@ -972,7 +972,8 @@ class InfoExtractor(object):
|
|||
"""Returns a playlist"""
|
||||
video_info = {'_type': 'playlist',
|
||||
'entries': entries}
|
||||
video_info.update(kwargs)
|
||||
video_info.update((key, value) for key, value in kwargs.items() if value is not None)
|
||||
|
||||
if playlist_id:
|
||||
video_info['id'] = playlist_id
|
||||
if playlist_title:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue