mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[NRK] Extract timestamp (#3231)
Closes #3211 Authored by: hatienl0i261299
This commit is contained in:
parent
b52e788eb2
commit
ab0970b233
@ -13,6 +13,7 @@
|
|||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
parse_duration,
|
parse_duration,
|
||||||
|
parse_iso8601,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
try_get,
|
try_get,
|
||||||
urljoin,
|
urljoin,
|
||||||
@ -247,6 +248,7 @@ def call_playback_api(item, query=None):
|
|||||||
'age_limit': age_limit,
|
'age_limit': age_limit,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
|
'timestamp': parse_iso8601(try_get(manifest, lambda x: x['availability']['onDemand']['from'], str))
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_series:
|
if is_series:
|
||||||
@ -797,7 +799,7 @@ def _real_extract(self, url):
|
|||||||
for video_id in re.findall(self._ITEM_RE, webpage)
|
for video_id in re.findall(self._ITEM_RE, webpage)
|
||||||
]
|
]
|
||||||
|
|
||||||
playlist_title = self. _extract_title(webpage)
|
playlist_title = self._extract_title(webpage)
|
||||||
playlist_description = self._extract_description(webpage)
|
playlist_description = self._extract_description(webpage)
|
||||||
|
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
|
Loading…
Reference in New Issue
Block a user