fix bug from #245

pull/280/head
pukkandan 5 years ago
parent 98e248faa4
commit 1652b626dc

@ -3257,7 +3257,7 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
video_id = qs.get('v', [None])[0] video_id = qs.get('v', [None])[0]
playlist_id = qs.get('list', [None])[0] playlist_id = qs.get('list', [None])[0]
if is_home.group('not_channel') is not None and is_home.group('not_channel').startswith('watch') and not video_id: if is_home is not None and is_home.group('not_channel') is not None and is_home.group('not_channel').startswith('watch') and not video_id:
if playlist_id: if playlist_id:
self._downloader.report_warning('%s is not a valid Youtube URL. Trying to download playlist %s' % (url, playlist_id)) self._downloader.report_warning('%s is not a valid Youtube URL. Trying to download playlist %s' % (url, playlist_id))
url = 'https://www.youtube.com/playlist?list=%s' % playlist_id url = 'https://www.youtube.com/playlist?list=%s' % playlist_id

Loading…
Cancel
Save