From d8b9fbb521207609051b64218039808a95b013b2 Mon Sep 17 00:00:00 2001 From: sepro Date: Thu, 14 Nov 2024 03:35:35 +0100 Subject: [PATCH] Remove unreachable code path --- yt_dlp/extractor/bandlab.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/yt_dlp/extractor/bandlab.py b/yt_dlp/extractor/bandlab.py index 7a8fa28bf9..ba31bd40ca 100644 --- a/yt_dlp/extractor/bandlab.py +++ b/yt_dlp/extractor/bandlab.py @@ -2,7 +2,6 @@ from .common import InfoExtractor from ..utils import ( ExtractorError, - UnsupportedError, float_or_none, int_or_none, parse_iso8601, @@ -379,8 +378,6 @@ class BandlabPlaylistIE(BandlabBaseIE): 'collections': ['collections'], 'embed': ['collections', 'albums'], }.get(playlist_type) - if not endpoints: - raise UnsupportedError(url) for endpoint in endpoints: playlist_data = self._download_json( f'https://www.bandlab.com/api/v1.3/{endpoint}/{playlist_id}', playlist_id,