diff --git a/.gitignore b/.gitignore index c4870a6ba..a3a7f357b 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,8 @@ venv/ # VS Code related files .vscode +AtomicParsley.exe +ffmpeg.exe +ffprobe.exe +test_fork.py +venv.bat diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 35fa58aef..fb53ca00d 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -900,11 +900,11 @@ from .pornhub import ( PornHubPlaylistIE, PornHubUserVideosIE, ) -from .pornhubpremium import ( - PornHubPremiumIE, - PornHubPremiumPlaylistIE, - PornHubPremiumUserVideosIE, -) +#from .pornhubpremium import ( +# PornHubPremiumIE, +# PornHubPremiumPlaylistIE, +# PornHubPremiumUserVideosIE, +#) from .pornotube import PornotubeIE from .pornovoisines import PornoVoisinesIE from .pornoxo import PornoXOIE @@ -1529,4 +1529,3 @@ from .zattoo import ( from .zdf import ZDFIE, ZDFChannelIE from .zingmp3 import ZingMp3IE from .zype import ZypeIE -from .yourextractor import YourExtractorIE diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 1c710b177..12d60d610 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -78,8 +78,8 @@ class PornHubIE(PornHubBaseIE): 'categories': list, }, 'params': { - 'username': "", - 'password': "", + 'username': "tdsist", + 'password': "ZtOUktu0QP", }, }, { 'url': 'http://www.pornhub.com/view_video.php?viewkey=648719015', @@ -230,7 +230,7 @@ class PornHubIE(PornHubBaseIE): def dl_webpage(platform): self._set_cookie(host, 'platform', platform) return self._download_webpage( - 'http://www.%s/view_video.php?viewkey=%s' % (host, video_id), + 'https://www.%s/view_video.php?viewkey=%s' % (host, video_id), video_id, 'Downloading %s webpage' % platform) webpage = dl_webpage('pc') diff --git a/youtube_dl/extractor/pornhubpremium.py b/youtube_dl/extractor/pornhubpremium.py deleted file mode 100644 index 22b7e19a6..000000000 --- a/youtube_dl/extractor/pornhubpremium.py +++ /dev/null @@ -1,451 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - -import functools -import itertools -import operator -import re - -from .common import InfoExtractor -from ..compat import ( - compat_HTTPError, - compat_str, - compat_urllib_request, -) -from .openload import PhantomJSwrapper -from ..utils import ( - determine_ext, - ExtractorError, - int_or_none, - orderedSet, - remove_quotes, - str_to_int, - url_or_none, -) - - -class PorHubPremiumBaseIE(InfoExtractor): - def _download_webpage_handle(self, *args, **kwargs): - def dl(*args, **kwargs): - return super(PorHubPremiumBaseIE, self)._download_webpage_handle(*args, **kwargs) - - webpage, urlh = dl(*args, **kwargs) - - if any(re.search(p, webpage) for p in ( - r'
]+\bonload=["\']go\(\)', - r'document\.cookie\s*=\s*["\']RNKEY=', - r'document\.location\.reload\(true\)')): - url_or_request = args[0] - url = (url_or_request.get_full_url() - if isinstance(url_or_request, compat_urllib_request.Request) - else url_or_request) - phantom = PhantomJSwrapper(self, required_version='2.0') - phantom.get(url, html=webpage) - webpage, urlh = dl(*args, **kwargs) - - return webpage, urlh - - -class PorHubPremiumIE(PorHubPremiumBaseIE): - IE_DESC = 'PorHubPremium and Thumbzilla' - _VALID_URL = r'''(?x) - https?:// - (?: - (?:[^/]+\.)?(?P