mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
update netease appsrc
This commit is contained in:
parent
afdf7d2587
commit
10c2f33fa6
@ -8,6 +8,7 @@ def netease_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
html = get_decoded_html(url)
|
html = get_decoded_html(url)
|
||||||
|
|
||||||
title = r1('movieDescription=\'([^\']+)\'', html) or r1('<title>(.+)</title>', html)
|
title = r1('movieDescription=\'([^\']+)\'', html) or r1('<title>(.+)</title>', html)
|
||||||
|
|
||||||
if title[0] == ' ':
|
if title[0] == ' ':
|
||||||
title = title[1:]
|
title = title[1:]
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ def netease_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
ext = 'flv'
|
ext = 'flv'
|
||||||
|
|
||||||
else:
|
else:
|
||||||
url = r1(r'["\'](.+)-list.m3u8["\']', html) + ".mp4"
|
url = r1(r'["\'](.+)-list.m3u8["\']', html) or r1(r'["\'](.+).m3u8["\']', html) + ".mp4"
|
||||||
_, _, size = url_info(url)
|
_, _, size = url_info(url)
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user