From 02133aeb1005a764a09bfdb22bc2c65350d1f7d6 Mon Sep 17 00:00:00 2001 From: gravesducking <219445875+gravesducking@users.noreply.github.com> Date: Wed, 9 Jul 2025 23:14:36 +0900 Subject: [PATCH] [ie/locipo] Remove redundant block Co-authored-by: garret1317 --- yt_dlp/extractor/locipo.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/yt_dlp/extractor/locipo.py b/yt_dlp/extractor/locipo.py index b4c1a85e55..9bdd8b0bb7 100644 --- a/yt_dlp/extractor/locipo.py +++ b/yt_dlp/extractor/locipo.py @@ -57,17 +57,7 @@ class LocipoIE(InfoExtractor): ] def _real_extract(self, url: str): - creative_id = self._match_valid_url(url).group('creative_id') # type: ignore - try: - playlist_id = self._match_valid_url(url).group('playlist_id') # type: ignore - except AttributeError: - playlist_id = '' - - if playlist_id and self.get_param('noplaylist'): - self.to_screen(f'--no-playlist option specified. Processing only video {creative_id}') - playlist_id = '' - elif playlist_id: - self.to_screen(f'Processing playlist ID {playlist_id}. if you want to process only the video {creative_id}, use --no-playlist option') + creative_id, playlist_id = self._match_valid_url(url).group('creative_id', 'playlist_id') if not playlist_id: creative_data = self._download_json(