From c58ee488a9a005d6c8e79ad925a1e9afc88b90b7 Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:31:53 +1300 Subject: [PATCH] simplify BoomplayGenericPlaylistIE.suitable --- yt_dlp/extractor/boomplay.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/yt_dlp/extractor/boomplay.py b/yt_dlp/extractor/boomplay.py index c5bbcbff2..bb5ba0f7d 100644 --- a/yt_dlp/extractor/boomplay.py +++ b/yt_dlp/extractor/boomplay.py @@ -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)