mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 13:57:25 +01:00
simplify BoomplayGenericPlaylistIE.suitable
This commit is contained in:
parent
eacad11a5a
commit
c58ee488a9
@ -401,8 +401,7 @@ class BoomplayGenericPlaylistIE(BoomplayBaseIE):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def suitable(cls, url):
|
def suitable(cls, url):
|
||||||
if super().suitable(url):
|
return super().suitable(url) and all(not ie.suitable(url) for ie in (
|
||||||
return not any(ie.suitable(url) for ie in (
|
|
||||||
BoomplayEpisodeIE,
|
BoomplayEpisodeIE,
|
||||||
BoomplayMusicIE,
|
BoomplayMusicIE,
|
||||||
BoomplayPlaylistIE,
|
BoomplayPlaylistIE,
|
||||||
@ -410,7 +409,6 @@ def suitable(cls, url):
|
|||||||
BoomplaySearchURLIE,
|
BoomplaySearchURLIE,
|
||||||
BoomplayVideoIE,
|
BoomplayVideoIE,
|
||||||
))
|
))
|
||||||
return False
|
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
playlist_id = self._generic_id(url)
|
playlist_id = self._generic_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user