[extractor/common] Add description to playlist_result

This commit is contained in:
Sergey M․ 2014-12-07 01:46:30 +06:00
parent 8d1c8cae9c
commit acf5cbfe93

View file

@ -439,7 +439,7 @@ def url_result(url, ie=None, video_id=None):
return video_info
@staticmethod
def playlist_result(entries, playlist_id=None, playlist_title=None):
def playlist_result(entries, playlist_id=None, playlist_title=None, playlist_description=None):
"""Returns a playlist"""
video_info = {'_type': 'playlist',
'entries': entries}
@ -447,6 +447,8 @@ def playlist_result(entries, playlist_id=None, playlist_title=None):
video_info['id'] = playlist_id
if playlist_title:
video_info['title'] = playlist_title
if playlist_description:
video_info['description'] = playlist_description
return video_info
def _search_regex(self, pattern, string, name, default=_NO_DEFAULT, fatal=True, flags=0, group=None):