mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-01 21:16:13 +00:00
refactor
This commit is contained in:
parent
5c055de269
commit
e6eb1ca6fa
@ -8,7 +8,6 @@ from ..utils import (
|
|||||||
str_or_none,
|
str_or_none,
|
||||||
try_call,
|
try_call,
|
||||||
unified_timestamp,
|
unified_timestamp,
|
||||||
update_url_query,
|
|
||||||
)
|
)
|
||||||
from ..utils.traversal import traverse_obj
|
from ..utils.traversal import traverse_obj
|
||||||
|
|
||||||
@ -108,13 +107,12 @@ class DuoplayIE(InfoExtractor):
|
|||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'X-Original-URI': manifest_url,
|
'X-Original-URI': manifest_url,
|
||||||
})['session']
|
})['session']
|
||||||
manifest_url = update_url_query(manifest_url, {'s': session_token})
|
|
||||||
|
|
||||||
episode_attr = self._parse_json(video_player.get(':episode') or '', video_id, fatal=False) or {}
|
episode_attr = self._parse_json(video_player.get(':episode') or '', video_id, fatal=False) or {}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'formats': self._extract_m3u8_formats(manifest_url, video_id, 'mp4'),
|
'formats': self._extract_m3u8_formats(manifest_url, video_id, 'mp4', query={'s': session_token}),
|
||||||
**traverse_obj(episode_attr, {
|
**traverse_obj(episode_attr, {
|
||||||
'title': 'title',
|
'title': 'title',
|
||||||
'description': 'synopsis',
|
'description': 'synopsis',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user