mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-06 02:00:19 +00: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):
|
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>')
|
_URL_IN_PLAYLIST = re.compile(r'<strong>.*?</strong>')
|
||||||
parser = HTMLAttributeParser()
|
parser = HTMLAttributeParser()
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
@ -321,4 +321,3 @@ class SohuPlaylistIE(InfoExtractor):
|
|||||||
r'<ul class="uList cfix">(.*?)</ul>',
|
r'<ul class="uList cfix">(.*?)</ul>',
|
||||||
webpage, 'video list', NO_DEFAULT, True, re.DOTALL)
|
webpage, 'video list', NO_DEFAULT, True, re.DOTALL)
|
||||||
return video_list
|
return video_list
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user