mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
Youku: fix #267
This commit is contained in:
parent
b71bf45bd2
commit
0612e97877
@ -42,7 +42,7 @@ def parse_video_title(url, page):
|
|||||||
# if we are playing a viedo from play list, the meta title might be incorrect
|
# if we are playing a viedo from play list, the meta title might be incorrect
|
||||||
title = r1_of([r'<div class="show_title" title="([^"]+)">[^<]', r'<title>([^<>]*)</title>'], page)
|
title = r1_of([r'<div class="show_title" title="([^"]+)">[^<]', r'<title>([^<>]*)</title>'], page)
|
||||||
else:
|
else:
|
||||||
title = r1_of([r'<div class="show_title" title="([^"]+)">[^<]', r'<meta name="title" content="([^"]*)"'], page)
|
title = r1_of([r'<div class="show_title" title="([^"]+)">[^<]', r'<title>([^-]+)—在线播放.*</title>', r'<meta name="title" content="([^"]*)"'], page)
|
||||||
assert title
|
assert title
|
||||||
title = trim_title(title)
|
title = trim_title(title)
|
||||||
if re.search(r'v_playlist', url) and re.search(r'-.*\S+', title):
|
if re.search(r'v_playlist', url) and re.search(r'-.*\S+', title):
|
||||||
|
Loading…
Reference in New Issue
Block a user