mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-27 17:08:32 +00:00
Apply suggestions
This commit is contained in:
parent
46a42c738a
commit
5791c83530
@ -262,6 +262,9 @@ class InfoExtractor:
|
|||||||
* http_chunk_size Chunk size for HTTP downloads
|
* http_chunk_size Chunk size for HTTP downloads
|
||||||
* ffmpeg_args Extra arguments for ffmpeg downloader (input)
|
* ffmpeg_args Extra arguments for ffmpeg downloader (input)
|
||||||
* ffmpeg_args_out Extra arguments for ffmpeg downloader (output)
|
* ffmpeg_args_out Extra arguments for ffmpeg downloader (output)
|
||||||
|
* ws (NiconicoLiveFD only) WebSocketResponse
|
||||||
|
* ws_url (NiconicoLiveFD only) Websockets URL
|
||||||
|
* max_quality (NiconicoLiveFD only) Max stream quality string
|
||||||
* is_dash_periods Whether the format is a result of merging
|
* is_dash_periods Whether the format is a result of merging
|
||||||
multiple DASH periods.
|
multiple DASH periods.
|
||||||
RTMP formats can also have the additional fields: page_url,
|
RTMP formats can also have the additional fields: page_url,
|
||||||
|
@ -30,7 +30,11 @@
|
|||||||
urlencode_postdata,
|
urlencode_postdata,
|
||||||
urljoin,
|
urljoin,
|
||||||
)
|
)
|
||||||
from ..utils.traversal import find_element, traverse_obj
|
from ..utils.traversal import (
|
||||||
|
find_element,
|
||||||
|
require,
|
||||||
|
traverse_obj,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class NiconicoBaseIE(InfoExtractor):
|
class NiconicoBaseIE(InfoExtractor):
|
||||||
@ -890,8 +894,7 @@ def _real_extract(self, url):
|
|||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'downloader_options': {
|
'downloader_options': {
|
||||||
'max_quality': traverse_obj(embedded_data, (
|
'max_quality': traverse_obj(embedded_data, ('program', 'stream', 'maxQuality', {str})) or 'normal',
|
||||||
'program', 'stream', 'maxQuality', {str})),
|
|
||||||
'ws': ws,
|
'ws': ws,
|
||||||
'ws_url': ws_url,
|
'ws_url': ws_url,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user