mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 10:11:52 +00:00
[livestream] Correct playlist ID and add a test for it
This commit is contained in:
parent
15ec669374
commit
1def5f359e
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ class LivestreamIE(InfoExtractor):
|
||||||
'url': 'http://new.livestream.com/tedx/cityenglish',
|
'url': 'http://new.livestream.com/tedx/cityenglish',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'title': 'TEDCity2.0 (English)',
|
'title': 'TEDCity2.0 (English)',
|
||||||
|
'id': '2245590',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 4,
|
'playlist_mincount': 4,
|
||||||
}, {
|
}, {
|
||||||
|
@ -148,7 +149,8 @@ class LivestreamIE(InfoExtractor):
|
||||||
if is_relevant(video_data, video_id)]
|
if is_relevant(video_data, video_id)]
|
||||||
if video_id is None:
|
if video_id is None:
|
||||||
# This is an event page:
|
# This is an event page:
|
||||||
return self.playlist_result(videos, info['id'], info['full_name'])
|
return self.playlist_result(
|
||||||
|
videos, '%s' % info['id'], info['full_name'])
|
||||||
else:
|
else:
|
||||||
if not videos:
|
if not videos:
|
||||||
raise ExtractorError('Cannot find video %s' % video_id)
|
raise ExtractorError('Cannot find video %s' % video_id)
|
||||||
|
|
Loading…
Reference in a new issue