mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-17 18:08:30 +00:00
style: Fix import formatting and add trailing comma
This commit is contained in:
parent
d3de29389d
commit
25cb416876
@ -1,9 +1,5 @@
|
|||||||
from .mtv import MTVServicesInfoExtractor
|
from .mtv import MTVServicesInfoExtractor
|
||||||
from ..utils import (
|
from ..utils import random_uuidv4, traverse_obj, ExtractorError
|
||||||
random_uuidv4,
|
|
||||||
traverse_obj,
|
|
||||||
ExtractorError, # Added ExtractorError import
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class SouthParkIE(MTVServicesInfoExtractor):
|
class SouthParkIE(MTVServicesInfoExtractor):
|
||||||
@ -114,7 +110,7 @@ def _real_extract(self, url):
|
|||||||
video_detail = traverse_obj(data, (
|
video_detail = traverse_obj(data, (
|
||||||
'children', lambda _, v: v.get('type') == 'MainContainer',
|
'children', lambda _, v: v.get('type') == 'MainContainer',
|
||||||
'children', 0, 'children', 0, 'props', 'videoDetail'
|
'children', 0, 'children', 0, 'props', 'videoDetail'
|
||||||
), ('children', 0, 'videoDetail'), get_all=False)
|
), ('children', 0, 'videoDetail'), get_all=False,)
|
||||||
|
|
||||||
if not video_detail:
|
if not video_detail:
|
||||||
raise ExtractorError('Could not find video data in page')
|
raise ExtractorError('Could not find video data in page')
|
||||||
|
Loading…
Reference in New Issue
Block a user