Cleanup unused code
Resolve changes requested by dstftw
This commit is contained in:
parent
07f5ccc837
commit
0f2eb325ba
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user