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