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

Fixed 'COM812 Trailing comma missing'

This commit is contained in:
Nikolay Fedorov 2025-08-01 22:42:07 +03:00 committed by GitHub
parent ed04965569
commit c4e22096ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ def _real_extract(self, url):
) )
if not video_id: if not video_id:
raise ExtractorError( raise ExtractorError(
'There are no player uuid in this page.', expected=True 'There are no player uuid in this page.', expected=True,
) )
video_id = video_id.group('video_id') video_id = video_id.group('video_id')
jsondata_url = ( jsondata_url = (
@ -89,7 +89,7 @@ def _real_extract(self, url):
) )
if not video_id: if not video_id:
raise ExtractorError( raise ExtractorError(
'There are no player id in this page.', expected=True 'There are no player id in this page.', expected=True,
) )
video_id = video_id.group('video_id') video_id = video_id.group('video_id')
jsondata_url = ( jsondata_url = (
@ -97,7 +97,7 @@ def _real_extract(self, url):
) )
try: try:
json_info = self._download_json( json_info = self._download_json(
jsondata_url, video_id, 'Downloading player config JSON metadata' jsondata_url, video_id, 'Downloading player config JSON metadata',
) )
except Exception as e: except Exception as e:
raise ExtractorError(str(e), expected=True) raise ExtractorError(str(e), expected=True)
@ -105,7 +105,7 @@ def _real_extract(self, url):
'auto' 'auto'
] ]
formats, subtitles = self._extract_m3u8_formats_and_subtitles( formats, subtitles = self._extract_m3u8_formats_and_subtitles(
m3u8_url, video_id, 'mp4', m3u8_id='hls' m3u8_url, video_id, 'mp4', m3u8_id='hls',
) )
return { return {
'id': video_id, 'id': video_id,