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

style: Fix import formatting and add trailing comma

This commit is contained in:
Randalix 2025-08-13 07:44:05 +02:00 committed by Randalix (aider)
parent d3de29389d
commit 25cb416876

View File

@ -1,9 +1,5 @@
from .mtv import MTVServicesInfoExtractor
from ..utils import (
random_uuidv4,
traverse_obj,
ExtractorError, # Added ExtractorError import
)
from ..utils import random_uuidv4, traverse_obj, ExtractorError
class SouthParkIE(MTVServicesInfoExtractor):
@ -114,7 +110,7 @@ def _real_extract(self, url):
video_detail = traverse_obj(data, (
'children', lambda _, v: v.get('type') == 'MainContainer',
'children', 0, 'children', 0, 'props', 'videoDetail'
), ('children', 0, 'videoDetail'), get_all=False)
), ('children', 0, 'videoDetail'), get_all=False,)
if not video_detail:
raise ExtractorError('Could not find video data in page')