mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-02 03:51:13 -05:00
simplify BoomplayGenericPlaylistIE.suitable
This commit is contained in:
parent
eacad11a5a
commit
c58ee488a9
1 changed files with 8 additions and 10 deletions
|
@ -401,16 +401,14 @@ class BoomplayGenericPlaylistIE(BoomplayBaseIE):
|
|||
|
||||
@classmethod
|
||||
def suitable(cls, url):
|
||||
if super().suitable(url):
|
||||
return not any(ie.suitable(url) for ie in (
|
||||
BoomplayEpisodeIE,
|
||||
BoomplayMusicIE,
|
||||
BoomplayPlaylistIE,
|
||||
BoomplayPodcastIE,
|
||||
BoomplaySearchURLIE,
|
||||
BoomplayVideoIE,
|
||||
))
|
||||
return False
|
||||
return super().suitable(url) and all(not ie.suitable(url) for ie in (
|
||||
BoomplayEpisodeIE,
|
||||
BoomplayMusicIE,
|
||||
BoomplayPlaylistIE,
|
||||
BoomplayPodcastIE,
|
||||
BoomplaySearchURLIE,
|
||||
BoomplayVideoIE,
|
||||
))
|
||||
|
||||
def _real_extract(self, url):
|
||||
playlist_id = self._generic_id(url)
|
||||
|
|
Loading…
Reference in a new issue