Explorar o código

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

Philipp Hagemeister %!s(int64=11) %!d(string=hai) anos
pai
achega
bfc2bedcfc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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: