mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
fix:pornhub download
This commit is contained in:
parent
f047840d24
commit
5b584cf880
@ -19,11 +19,6 @@ def pornhub_download(url, output_dir='.', merge=False, info_only=False, **kwargs
|
|||||||
comment = re.compile(r'/\*(.*?)\*/', re.DOTALL)
|
comment = re.compile(r'/\*(.*?)\*/', re.DOTALL)
|
||||||
cdata = re.sub(comment, "", jsf)
|
cdata = re.sub(comment, "", jsf)
|
||||||
cs = cdata.replace(r'var ', '').split(";")
|
cs = cdata.replace(r'var ', '').split(";")
|
||||||
usi = cs[0].find("utmSource")
|
|
||||||
|
|
||||||
flashvars = cs[0][12:usi - 5]
|
|
||||||
|
|
||||||
jfv = json.loads(flashvars)
|
|
||||||
|
|
||||||
param_dict = {}
|
param_dict = {}
|
||||||
for c in cs:
|
for c in cs:
|
||||||
|
Loading…
Reference in New Issue
Block a user