From 58a2dc90eecb81a1f177db4867812a89d1491421 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 21 Aug 2013 11:01:18 +0200 Subject: [PATCH] Nicovideo: fix --- src/you_get/downloader/nicovideo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/downloader/nicovideo.py b/src/you_get/downloader/nicovideo.py index 144c02a1..7d384f31 100644 --- a/src/you_get/downloader/nicovideo.py +++ b/src/you_get/downloader/nicovideo.py @@ -23,7 +23,7 @@ def nicovideo_download(url, output_dir = '.', merge = True, info_only = False): nicovideo_login(user, password) html = get_html(url) # necessary! - title = unicodize(r1(r'title:\s*\'(.*)\',', html)) + title = unicodize(r1(r'([^<]+)', html)) api_html = get_html('http://www.nicovideo.jp/api/getflv?v=%s' % url.split('/')[-1]) real_url = parse.unquote(r1(r'url=([^&]+)&', api_html))