[sohu] fix extractor conflict

certain URL would cause conflict between SohuPlaylistIE and SohuIE
This commit is contained in:
Yukan Zhang 2021-06-10 00:58:34 -07:00
parent 22c0a90a7a
commit 69a40d3eb0

View File

@ -262,7 +262,7 @@ class SohuIE(InfoExtractor):
class SohuPlaylistIE(InfoExtractor):
_VALID_URL = r'https?://(?:my\.)?tv\.sohu\.com/pl/(?P<pl_id>\d+)'
_VALID_URL = r'https?://(?:my\.)?tv\.sohu\.com/pl/(?P<pl_id>\d+)$'
_URL_IN_PLAYLIST = re.compile(r'<strong>.*?</strong>')
parser = HTMLAttributeParser()
_TESTS = [{
@ -321,4 +321,3 @@ class SohuPlaylistIE(InfoExtractor):
r'<ul class="uList cfix">(.*?)</ul>',
webpage, 'video list', NO_DEFAULT, True, re.DOTALL)
return video_list