simplify BoomplayGenericPlaylistIE.suitable

This commit is contained in:
grqx_wsl 2024-11-05 13:31:53 +13:00
parent eacad11a5a
commit c58ee488a9

View File

@ -401,16 +401,14 @@ 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, BoomplayPodcastIE,
BoomplayPodcastIE, 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)