1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-04-12 01:48:09 -05:00

[ie/mlbtv] Fix radio-only extraction (#12792)

Authored by: bashonly
This commit is contained in:
bashonly 2025-03-30 18:28:14 -05:00 committed by GitHub
parent 9a1ec1d36e
commit f033d86b96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -449,9 +449,7 @@ mutation initPlaybackSession(
if not (m3u8_url and token): if not (m3u8_url and token):
errors = '; '.join(traverse_obj(response, ('errors', ..., 'message', {str}))) errors = '; '.join(traverse_obj(response, ('errors', ..., 'message', {str})))
if 'not entitled' in errors: if errors: # Only warn when 'blacked out' or 'not entitled'; radio formats may be available
raise ExtractorError(errors, expected=True)
elif errors: # Only warn when 'blacked out' since radio formats are available
self.report_warning(f'API returned errors for {format_id}: {errors}') self.report_warning(f'API returned errors for {format_id}: {errors}')
else: else:
self.report_warning(f'No formats available for {format_id} broadcast; skipping') self.report_warning(f'No formats available for {format_id} broadcast; skipping')