Cleanup unused code

Resolve changes requested by dstftw
This commit is contained in:
fauresystems 2019-06-22 09:43:29 +02:00
parent 07f5ccc837
commit 0f2eb325ba
2 changed files with 2 additions and 11 deletions

View File

@ -900,11 +900,6 @@ from .pornhub import (
PornHubPlaylistIE, PornHubPlaylistIE,
PornHubUserVideosIE, PornHubUserVideosIE,
) )
#from .pornhubpremium import (
# PornHubPremiumIE,
# PornHubPremiumPlaylistIE,
# PornHubPremiumUserVideosIE,
#)
from .pornotube import PornotubeIE from .pornotube import PornotubeIE
from .pornovoisines import PornoVoisinesIE from .pornovoisines import PornoVoisinesIE
from .pornoxo import PornoXOIE from .pornoxo import PornoXOIE

View File

@ -54,7 +54,7 @@ class PornHubIE(PornHubBaseIE):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
https?:// https?://
(?: (?:
(?:[^/]+\.)?(?P<host>(pornhub|pornhubpremium)\.(?:com|net))/(?:(?:view_video\.php|video/show)\?viewkey=|embed/)| (?:[^/]+\.)?(?P<host>(?:pornhub|pornhubpremium)\.(?:com|net))/(?:(?:view_video\.php|video/show)\?viewkey=|embed/)|
(?:www\.)?thumbzilla\.com/video/ (?:www\.)?thumbzilla\.com/video/
) )
(?P<id>[\da-z]+) (?P<id>[\da-z]+)
@ -96,8 +96,6 @@ class PornHubIE(PornHubBaseIE):
'categories': list, 'categories': list,
}, },
'params': { 'params': {
'username': "tdsist",
'password': "ZtOUktu0QP",
'skip_download': True, 'skip_download': True,
}, },
}, { }, {
@ -203,10 +201,8 @@ class PornHubIE(PornHubBaseIE):
'password': password, 'password': password,
}) })
self._TOKEN = login_form['token']
response = self._download_json( response = self._download_json(
"https://www.pornhubpremium.com/front/authenticate", None, 'Logging in', 'https://www.pornhubpremium.com/front/authenticate', None, 'Logging in',
data=urlencode_postdata(login_form), headers={ data=urlencode_postdata(login_form), headers={
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
'Referer': self._LOGIN_URL, 'Referer': self._LOGIN_URL,