X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/c2b5f3114ff0f2888af211323ad60505d87fb2fd..29f7c58aafb25a094e267a8a3fb355e102e42792:/youtube_dlc/extractor/pornhub.py diff --git a/youtube_dlc/extractor/pornhub.py b/youtube_dlc/extractor/pornhub.py index 529f3f711..2fcbd186f 100644 --- a/youtube_dlc/extractor/pornhub.py +++ b/youtube_dlc/extractor/pornhub.py @@ -31,7 +31,12 @@ def _download_webpage_handle(self, *args, **kwargs): def dl(*args, **kwargs): return super(PornHubBaseIE, self)._download_webpage_handle(*args, **kwargs) - webpage, urlh = dl(*args, **kwargs) + ret = dl(*args, **kwargs) + + if not ret: + return ret + + webpage, urlh = ret if any(re.search(p, webpage) for p in ( r'
]+\bonload=["\']go\(\)', @@ -53,7 +58,7 @@ class PornHubIE(PornHubBaseIE): _VALID_URL = r'''(?x) https?:// (?: - (?:[^/]+\.)?(?P