mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +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)
|
||||
cdata = re.sub(comment, "", jsf)
|
||||
cs = cdata.replace(r'var ', '').split(";")
|
||||
usi = cs[0].find("utmSource")
|
||||
|
||||
flashvars = cs[0][12:usi - 5]
|
||||
|
||||
jfv = json.loads(flashvars)
|
||||
|
||||
param_dict = {}
|
||||
for c in cs:
|
||||
|
Loading…
Reference in New Issue
Block a user