1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-02 10:29:28 +00:00

[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