From 93e281288f535e08a20e3678bb1a8493bfcb5300 Mon Sep 17 00:00:00 2001 From: Tristan Waddington Date: Sun, 8 Mar 2020 12:53:33 -0700 Subject: [PATCH] Added default _NETRC_MACHINE value to make tests happy. --- youtube_dl/extractor/pornhub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 60f97a203..0153044d8 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -27,6 +27,9 @@ from ..utils import ( class PornHubBaseIE(InfoExtractor): + + _NETRC_MACHINE = 'pornhub' # or 'pornhubpremium' + def _download_webpage_handle(self, *args, **kwargs): def dl(*args, **kwargs): return super(PornHubBaseIE, self)._download_webpage_handle(*args, **kwargs)