From cbe89f0c28c98fe367aff1460787de910ca830f8 Mon Sep 17 00:00:00 2001 From: Yukan Zhang Date: Wed, 26 May 2021 23:16:37 -0700 Subject: [PATCH] Added a multipart video testcase for sohu.py --- youtube_dl/extractor/sohu.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/youtube_dl/extractor/sohu.py b/youtube_dl/extractor/sohu.py index df003a439..c4f50459f 100644 --- a/youtube_dl/extractor/sohu.py +++ b/youtube_dl/extractor/sohu.py @@ -106,6 +106,35 @@ class SohuIE(InfoExtractor): 'ext': 'mp4', 'title': "Cryin' [HD 1080p] Chris.Botti(feat. Steven Tyler", }, + }, { + 'note': 'Multipart video with new address format', + 'url': 'https://tv.sohu.com/v/dXMvMjQyNTYyMTYzLzc4OTEwMzM5LnNodG1s.html?src=pl', + 'info_dict': { + 'id': '78910339', + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + }, + 'playlist': [{ + 'info_dict': { + 'id': '78910339_part1', + 'ext': 'mp4', + 'duration': 294, + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + } + }, { + 'info_dict': { + 'id': '78910339_part2', + 'ext': 'mp4', + 'duration': 300, + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + } + }, { + 'info_dict': { + 'id': '78910339_part3', + 'ext': 'mp4', + 'duration': 150, + 'title': '【神探苍实战秘籍】第13期 战争之影 赫卡里姆', + } + }] }] def _real_extract(self, url):