mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
TumblrIE: fix title matching
This commit is contained in:
parent
aed523ecc1
commit
104ccdb8b4
@ -344,7 +344,7 @@
|
|||||||
"file": "17258355236.mp4",
|
"file": "17258355236.mp4",
|
||||||
"md5": "7c6a514d691b034ccf8567999e9e88a3",
|
"md5": "7c6a514d691b034ccf8567999e9e88a3",
|
||||||
"info_dict": {
|
"info_dict": {
|
||||||
"title": "A sample video from LeeAnn. (If you need an idea..."
|
"title": "Calling all Pris! - A sample video from LeeAnn. (If you need an idea..."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4267,8 +4267,8 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
# The only place where you can get a title, it's not complete,
|
# The only place where you can get a title, it's not complete,
|
||||||
# but searching in other places doesn't work for all videos
|
# but searching in other places doesn't work for all videos
|
||||||
re_title = r'<title>(.*?) - (?P<title>.*?)</title>'
|
re_title = r'<title>(?P<title>.*?)</title>'
|
||||||
title = unescapeHTML(re.search(re_title, webpage).group('title'))
|
title = unescapeHTML(re.search(re_title, webpage, re.DOTALL).group('title'))
|
||||||
|
|
||||||
return [{'id': video_id,
|
return [{'id': video_id,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user