aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-02 21:51:32 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-02 21:51:32 +0530
commitb60419c51aa3eb9872e278e526cc5e62bf484462 (patch)
tree4849188e2de095a8dbd244be690d788e701f360d /youtube_dlc/extractor/common.py
parent18590cecdbeb8e9c525ecedbb973586e9c59574f (diff)
downloadhypervideo-pre-b60419c51aa3eb9872e278e526cc5e62bf484462.tar.lz
hypervideo-pre-b60419c51aa3eb9872e278e526cc5e62bf484462.tar.xz
hypervideo-pre-b60419c51aa3eb9872e278e526cc5e62bf484462.zip
[youtube] More metadata extraction for channels/playlists
Diffstat (limited to 'youtube_dlc/extractor/common.py')
-rw-r--r--youtube_dlc/extractor/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py
index e13ba5a39..49d99bb55 100644
--- a/youtube_dlc/extractor/common.py
+++ b/youtube_dlc/extractor/common.py
@@ -336,9 +336,8 @@ class InfoExtractor(object):
There must be a key "entries", which is a list, an iterable, or a PagedList
object, each element of which is a valid dictionary by this specification.
- Additionally, playlists can have "id", "title", "description", "uploader",
- "uploader_id", "uploader_url", "duration" attributes with the same semantics
- as videos (see above).
+ Additionally, playlists can have "id", "title", and any other relevent
+ attributes with the same semantics as videos (see above).
_type "multi_video" indicates that there are multiple videos that
@@ -967,10 +966,11 @@ class InfoExtractor(object):
urls, playlist_id=playlist_id, playlist_title=playlist_title)
@staticmethod
- def playlist_result(entries, playlist_id=None, playlist_title=None, playlist_description=None):
+ def playlist_result(entries, playlist_id=None, playlist_title=None, playlist_description=None, **kwargs):
"""Returns a playlist"""
video_info = {'_type': 'playlist',
'entries': entries}
+ video_info.update(kwargs)
if playlist_id:
video_info['id'] = playlist_id
if playlist_title: