Browse Source

[youtube] Make confirm_age non-fatal (#4042)

Philipp Hagemeister 11 năm trước cách đây
mục cha
commit
bfc2bedcfc
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      youtube_dl/extractor/youtube.py

+ 2 - 2
youtube_dl/extractor/youtube.py

@@ -185,8 +185,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
 
         self._download_webpage(
             req, None,
-            note='Confirming age', errnote='Unable to confirm age')
-        return True
+            note='Confirming age', errnote='Unable to confirm age',
+            fatal=False)
 
     def _real_initialize(self):
         if self._downloader is None: