JPopsuki: fix #137

This commit is contained in:
Mort Yao 2013-03-26 22:52:20 +01:00
parent 154139fe3b
commit 0447c34d67

View File

@ -7,7 +7,10 @@ from ..common import *
def jpopsuki_download(url, output_dir = '.', merge = True, info_only = False): def jpopsuki_download(url, output_dir = '.', merge = True, info_only = False):
html = get_html(url) html = get_html(url)
title = r1(r'<meta name="title" content="([^"]*)"', html)[:-14] title = r1(r'<meta name="title" content="([^"]*)"', html)
if title.endswith(' - JPopsuki TV'):
title = title[:-14]
url = "http://jpopsuki.tv%s" % r1(r'<source src="([^"]*)"', html) url = "http://jpopsuki.tv%s" % r1(r'<source src="([^"]*)"', html)
type, ext, size = url_info(url) type, ext, size = url_info(url)