|
|
@ -14,10 +14,10 @@ from ..utils import ExtractorError
|
|
|
|
class SohuIE(InfoExtractor):
|
|
|
|
class SohuIE(InfoExtractor):
|
|
|
|
_VALID_URL = r'https?://(?P<mytv>my\.)?tv\.sohu\.com/.+?/(?(mytv)|n)(?P<id>\d+)\.shtml.*?'
|
|
|
|
_VALID_URL = r'https?://(?P<mytv>my\.)?tv\.sohu\.com/.+?/(?(mytv)|n)(?P<id>\d+)\.shtml.*?'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Sohu videos give different MD5 sums on Travis CI and my machine
|
|
|
|
_TESTS = [{
|
|
|
|
_TESTS = [{
|
|
|
|
'note': 'This video is available only in Mainland China',
|
|
|
|
'note': 'This video is available only in Mainland China',
|
|
|
|
'url': 'http://tv.sohu.com/20130724/n382479172.shtml#super',
|
|
|
|
'url': 'http://tv.sohu.com/20130724/n382479172.shtml#super',
|
|
|
|
'md5': '29175c8cadd8b5cc4055001e85d6b372',
|
|
|
|
|
|
|
|
'info_dict': {
|
|
|
|
'info_dict': {
|
|
|
|
'id': '382479172',
|
|
|
|
'id': '382479172',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
@ -26,7 +26,6 @@ class SohuIE(InfoExtractor):
|
|
|
|
'skip': 'On available in China',
|
|
|
|
'skip': 'On available in China',
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
'url': 'http://tv.sohu.com/20150305/n409385080.shtml',
|
|
|
|
'url': 'http://tv.sohu.com/20150305/n409385080.shtml',
|
|
|
|
'md5': '699060e75cf58858dd47fb9c03c42cfb',
|
|
|
|
|
|
|
|
'info_dict': {
|
|
|
|
'info_dict': {
|
|
|
|
'id': '409385080',
|
|
|
|
'id': '409385080',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
@ -34,7 +33,6 @@ class SohuIE(InfoExtractor):
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
'url': 'http://my.tv.sohu.com/us/232799889/78693464.shtml',
|
|
|
|
'url': 'http://my.tv.sohu.com/us/232799889/78693464.shtml',
|
|
|
|
'md5': '9bf34be48f2f4dadcb226c74127e203c',
|
|
|
|
|
|
|
|
'info_dict': {
|
|
|
|
'info_dict': {
|
|
|
|
'id': '78693464',
|
|
|
|
'id': '78693464',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
@ -48,7 +46,6 @@ class SohuIE(InfoExtractor):
|
|
|
|
'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
|
|
|
|
'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'playlist': [{
|
|
|
|
'playlist': [{
|
|
|
|
'md5': 'bdbfb8f39924725e6589c146bc1883ad',
|
|
|
|
|
|
|
|
'info_dict': {
|
|
|
|
'info_dict': {
|
|
|
|
'id': '78910339_part1',
|
|
|
|
'id': '78910339_part1',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
@ -56,7 +53,6 @@ class SohuIE(InfoExtractor):
|
|
|
|
'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
|
|
|
|
'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
'md5': '3e1f46aaeb95354fd10e7fca9fc1804e',
|
|
|
|
|
|
|
|
'info_dict': {
|
|
|
|
'info_dict': {
|
|
|
|
'id': '78910339_part2',
|
|
|
|
'id': '78910339_part2',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
@ -64,7 +60,6 @@ class SohuIE(InfoExtractor):
|
|
|
|
'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
|
|
|
|
'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
'md5': '8407e634175fdac706766481b9443450',
|
|
|
|
|
|
|
|
'info_dict': {
|
|
|
|
'info_dict': {
|
|
|
|
'id': '78910339_part3',
|
|
|
|
'id': '78910339_part3',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
|