1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-16 04:58:56 +00:00

Apply suggestions

This commit is contained in:
doe1080
2025-06-26 18:58:04 +09:00
parent 46a42c738a
commit 5791c83530
2 changed files with 9 additions and 3 deletions

View File

@@ -30,7 +30,11 @@ from ..utils import (
urlencode_postdata,
urljoin,
)
from ..utils.traversal import find_element, traverse_obj
from ..utils.traversal import (
find_element,
require,
traverse_obj,
)
class NiconicoBaseIE(InfoExtractor):
@@ -890,8 +894,7 @@ class NiconicoLiveIE(NiconicoBaseIE):
'id': video_id,
'title': title,
'downloader_options': {
'max_quality': traverse_obj(embedded_data, (
'program', 'stream', 'maxQuality', {str})),
'max_quality': traverse_obj(embedded_data, ('program', 'stream', 'maxQuality', {str})) or 'normal',
'ws': ws,
'ws_url': ws_url,
},