aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-04-19 19:19:44 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-04-19 19:19:44 +0800
commitf158799bbe72e1fe99ec057cc968d3ec874fb1dd (patch)
tree6e01b2f1e0403f24a517dde4b538b3684450eebf /youtube_dl/extractor
parent8b0e8990c241789d7deb1f5e27fc1aea00b4fa5e (diff)
[Sohu] Fix title extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/sohu.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/sohu.py b/youtube_dl/extractor/sohu.py
index 11edf616a..f8a4840f7 100644
--- a/youtube_dl/extractor/sohu.py
+++ b/youtube_dl/extractor/sohu.py
@@ -47,6 +47,7 @@ class SohuIE(InfoExtractor):
'url': 'http://my.tv.sohu.com/pl/8384802/78910339.shtml',
'info_dict': {
'id': '78910339',
+ 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
},
'playlist': [{
'md5': 'bdbfb8f39924725e6589c146bc1883ad',
@@ -110,7 +111,7 @@ class SohuIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
- title = self._og_search_title(webpage)
+ title = re.sub(r' - 搜狐视频$', '', self._og_search_title(webpage))
vid = self._html_search_regex(
r'var vid ?= ?["\'](\d+)["\']',
@@ -172,9 +173,10 @@ class SohuIE(InfoExtractor):
info['id'] = video_id
else:
info = {
- '_type': 'playlist',
+ '_type': 'multi_video',
'entries': playlist,
'id': video_id,
+ 'title': title,
}
return info