mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
JPopsuki: fix #137
This commit is contained in:
parent
154139fe3b
commit
0447c34d67
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user