1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-18 19:28:31 +00:00

[ie/locipo] Remove redundant block

Co-authored-by: garret1317 <garret1317@yandex.com>
This commit is contained in:
gravesducking 2025-07-09 23:14:36 +09:00 committed by GitHub
parent 198730d17f
commit 02133aeb10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,17 +57,7 @@ class LocipoIE(InfoExtractor):
] ]
def _real_extract(self, url: str): def _real_extract(self, url: str):
creative_id = self._match_valid_url(url).group('creative_id') # type: ignore creative_id, playlist_id = self._match_valid_url(url).group('creative_id', 'playlist_id')
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')
if not playlist_id: if not playlist_id:
creative_data = self._download_json( creative_data = self._download_json(