aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2020-11-27 01:16:02 +0530
committerpukkandan <pukkandan@gmail.com>2020-11-27 01:16:02 +0530
commitc78b936af4366259605e3e706bdeb5e173bf3d9b (patch)
tree03c6b027a196c09ed3bf1a589c53a97dc076a406
parent2fa90513e569d401143d27d6fd333331a74d10f3 (diff)
downloadhypervideo-pre-c78b936af4366259605e3e706bdeb5e173bf3d9b.tar.lz
hypervideo-pre-c78b936af4366259605e3e706bdeb5e173bf3d9b.tar.xz
hypervideo-pre-c78b936af4366259605e3e706bdeb5e173bf3d9b.zip
bug fix
-rw-r--r--youtube_dlc/extractor/youtube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py
index d23c503ad..ad56b9b01 100644
--- a/youtube_dlc/extractor/youtube.py
+++ b/youtube_dlc/extractor/youtube.py
@@ -64,7 +64,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
_TFA_URL = 'https://accounts.google.com/_/signin/challenge?hl=en&TL={0}'
_RESERVED_NAMES = (
- r'course|embed|channel|c|user|playlist|watch|w|results|storefront|'
+ r'course|embed|channel|c|user|playlist|watch|w|results|storefront|oops|'
r'shared|index|account|reporthistory|t/terms|about|upload|signin|logout|'
r'feed/(watch_later|history|subscriptions|library|trending|recommended)')
@@ -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').startswith('watch') and not video_id:
+ if 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