1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-15 00:48:28 +00:00

Fix double quotes

This commit is contained in:
Nikolay Fedorov 2025-08-05 00:36:36 +03:00 committed by GitHub
parent b73250f275
commit 4f21363359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,7 @@ def _real_extract(self, url):
try:
media_info = json_info.get('data').get('playlist').get('medialist')[0]
except (KeyError, AttributeError, TypeError) as e:
raise ExtractorError("media_info get error: %s " % str(e), expected=True)
raise ExtractorError('media_info get error: %s' % str(e), expected=True)
try:
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
media_info.get('sources').get('m3u8').get('auto'), video_id, 'mp4', m3u8_id='hls',
@ -144,6 +144,6 @@ def _real_extract(self, url):
'duration': int_or_none(media_info.get('duration')),
}
except (KeyError, AttributeError, TypeError) as e:
raise ExtractorError("Result error: %s" % str(e), expected=True)
raise ExtractorError('Result error: %s' % str(e), expected=True)
return res