logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 2adc0c51cdf38e039fba0ede11f65bbd9c71bde8
parent 1f0910bc2742b16be8425841d5ed6a0fd96f82a4
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu,  4 Feb 2021 04:20:09 +0700

[pornhub] Add placeholder netrc machine

Diffstat:

Myoutube_dl/extractor/pornhub.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py @@ -29,6 +29,8 @@ from ..utils import ( class PornHubBaseIE(InfoExtractor): + _NETRC_MACHINE = 'pornhub' + def _download_webpage_handle(self, *args, **kwargs): def dl(*args, **kwargs): return super(PornHubBaseIE, self)._download_webpage_handle(*args, **kwargs)