From 1959e6e41ffafce22db156db82c00e9293aa1132 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Fri, 11 Jan 2013 18:18:51 +0100 Subject: [PATCH] 163: remove leading whitespace --- README.md | 4 ++-- README.txt | 2 +- you_get/downloader/netease.py | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 122b711e..ecc61b88 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Fork me on GitHub: * ifeng (凤凰视频) * iQIYI (爱奇艺) * Ku6 (酷6网) -* NetEase (网易) +* NetEase (网易视频) * PPTV * QQ (腾讯视频) * Sina (新浪视频) @@ -217,7 +217,7 @@ You-Get基于优酷下载脚本[iambus/youku-lixian](https://github.com/iambus/y * 凤凰视频 * 爱奇艺 * 酷6网 -* 网易 +* 网易视频 * PPTV * 腾讯视频 * 新浪视频 diff --git a/README.txt b/README.txt index 4c7a3b52..262c7cbc 100644 --- a/README.txt +++ b/README.txt @@ -28,7 +28,7 @@ Supported Sites (As of Now) * ifeng (凤凰视频) http://v.ifeng.com * iQIYI (爱奇艺) http://www.iqiyi.com * Ku6 (酷6网) http://www.ku6.com -* NetEase (网易) http://v.163.com +* NetEase (网易视频) http://v.163.com * PPTV http://www.pptv.com * QQ (腾讯视频) http://v.qq.com * Sina (新浪视频) http://video.sina.com.cn diff --git a/you_get/downloader/netease.py b/you_get/downloader/netease.py index cd1504fb..964c192d 100644 --- a/you_get/downloader/netease.py +++ b/you_get/downloader/netease.py @@ -25,6 +25,8 @@ def netease_download(url, output_dir = '.', merge = True, info_only = False): else: title = r1('(.+)', html) + if title[0] == ' ': + title = title[1:] url = r1(r'(.+)-list.m3u8', src) + ".mp4" _, _, size = url_info(url) ext = 'mp4'