mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-26 10:36:08 +00:00
Apply suggestions from code review
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
b0b090669d
commit
2a7edbd91a
@ -398,7 +398,7 @@ class BandlabPlaylistIE(BandlabBaseIE):
|
|||||||
elif post_type == 'Video':
|
elif post_type == 'Video':
|
||||||
yield self._parse_video(post)
|
yield self._parse_video(post)
|
||||||
else:
|
else:
|
||||||
self.report_warning(f'Skipping unknown post type: {post_type!r}')
|
self.report_warning(f'Skipping unknown post type: "{post_type}"')
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
playlist_id, playlist_type = self._match_valid_url(url).group('id', 'type')
|
playlist_id, playlist_type = self._match_valid_url(url).group('id', 'type')
|
||||||
@ -416,7 +416,7 @@ class BandlabPlaylistIE(BandlabBaseIE):
|
|||||||
playlist_type = endpoint
|
playlist_type = endpoint
|
||||||
break
|
break
|
||||||
if error_code := playlist_data.get('errorCode'):
|
if error_code := playlist_data.get('errorCode'):
|
||||||
raise ExtractorError(f'Could not find playlist data. Error code: {error_code!r}')
|
raise ExtractorError(f'Could not find playlist data. Error code: "{error_code}"')
|
||||||
|
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
self._entries(playlist_data), playlist_id,
|
self._entries(playlist_data), playlist_id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user