mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-02 16:42:53 +01:00
[sohu] fix extractor conflict
certain URL would cause conflict between SohuPlaylistIE and SohuIE
This commit is contained in:
parent
22c0a90a7a
commit
69a40d3eb0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user