diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-03-15 00:59:49 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-03-15 00:59:49 +0800 |
commit | cd65491c306f644d7bb3c7ad98795a3f8660be49 (patch) | |
tree | 1358b972a65ab12e0887bb06754a3aa682f7b340 /youtube_dl/extractor/sohu.py | |
parent | 55969016e96fded28b97b2ef3bbf66efa83d6afb (diff) |
[Sohu] Add a multiplart video test case
Diffstat (limited to 'youtube_dl/extractor/sohu.py')
-rw-r--r-- | youtube_dl/extractor/sohu.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/youtube_dl/extractor/sohu.py b/youtube_dl/extractor/sohu.py index 5adc734d9..7db5b2f13 100644 --- a/youtube_dl/extractor/sohu.py +++ b/youtube_dl/extractor/sohu.py @@ -42,6 +42,37 @@ class SohuIE(InfoExtractor): 'ext': 'mp4', 'title': '【爱范品】第31期:MWC见不到的奇葩手机', } + }, { + 'note': 'Multipart video', + 'url': 'http://my.tv.sohu.com/pl/8384802/78910339.shtml', + 'info_dict': { + 'id': '78910339', + }, + 'playlist': [{ + 'md5': 'bdbfb8f39924725e6589c146bc1883ad', + 'info_dict': { + 'id': '78910339_part1', + 'ext': 'mp4', + 'duration': 294, + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + } + }, { + 'md5': '3e1f46aaeb95354fd10e7fca9fc1804e', + 'info_dict': { + 'id': '78910339_part2', + 'ext': 'mp4', + 'duration': 300, + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + } + }, { + 'md5': '8407e634175fdac706766481b9443450', + 'info_dict': { + 'id': '78910339_part3', + 'ext': 'mp4', + 'duration': 150, + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + } + }] }] def _real_extract(self, url): |