Skip to content

Commit

Permalink
[extractor/common] Add description to playlist_result
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Dec 6, 2014
1 parent 8d1c8ca commit acf5cbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,16 @@ 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}
if playlist_id:
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):
Expand Down

0 comments on commit acf5cbf

Please sign in to comment.