From 1652b626dcd358fde3b3d820ab87d42ca634118e Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 30 Nov 2020 23:20:20 +0530 Subject: [PATCH] fix bug from #245 --- youtube_dlc/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py index e0f211b74..8cfa3100f 100644 --- a/youtube_dlc/extractor/youtube.py +++ b/youtube_dlc/extractor/youtube.py @@ -3257,7 +3257,7 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor): video_id = qs.get('v', [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: 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