update netease appsrc

This commit is contained in:
liuerfire 2014-01-05 02:59:24 +08:00
parent afdf7d2587
commit 10c2f33fa6

View File

@ -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'