Nicovideo: fix

This commit is contained in:
Mort Yao 2013-08-21 11:01:18 +02:00
parent 6c537e86b8
commit 58a2dc90ee

View File

@ -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'<span class="videoHeaderTitle">([^<]+)</span>', 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))