From 10c2f33fa6685fda2daef1ac51f959a25a4c2ea2 Mon Sep 17 00:00:00 2001 From: liuerfire Date: Sun, 5 Jan 2014 02:59:24 +0800 Subject: [PATCH] update netease appsrc --- src/you_get/extractor/netease.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractor/netease.py b/src/you_get/extractor/netease.py index 863689f3..04a0c15c 100644 --- a/src/you_get/extractor/netease.py +++ b/src/you_get/extractor/netease.py @@ -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('(.+)', 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'