diff --git a/yt_dlp/extractor/smotrim.py b/yt_dlp/extractor/smotrim.py index 146f9073c..b396f9a6f 100644 --- a/yt_dlp/extractor/smotrim.py +++ b/yt_dlp/extractor/smotrim.py @@ -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