mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
Update pptv.py
fixed pptv video url match
This commit is contained in:
parent
af4db738a2
commit
e358e33241
@ -143,7 +143,7 @@ def pptv_download_by_id(id, title = None, output_dir = '.', merge = True, info_o
|
|||||||
pptv_download_by_id(id, output_dir = output_dir, merge = merge, info_only = info_only)
|
pptv_download_by_id(id, output_dir = output_dir, merge = merge, info_only = info_only)
|
||||||
|
|
||||||
def pptv_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
def pptv_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
||||||
assert re.match(r'http://v.pptv.com/show/(\w+)\.html$', url)
|
assert re.match(r'http://v.pptv.com/show/.*?\.html.*', url)
|
||||||
html = get_html(url)
|
html = get_html(url)
|
||||||
id = r1(r'webcfg\s*=\s*{"id":\s*(\d+)', html)
|
id = r1(r'webcfg\s*=\s*{"id":\s*(\d+)', html)
|
||||||
assert id
|
assert id
|
||||||
|
Loading…
Reference in New Issue
Block a user