mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-22 02:15:12 +00:00
[itv] Extract series metadata
This commit is contained in:
parent
c2d7d76efd
commit
751c89a27d
1 changed files with 4 additions and 2 deletions
|
@ -203,7 +203,8 @@ def _add_sub_element(element, name):
|
|||
'ext': 'ttml' if ext == 'xml' else ext,
|
||||
})
|
||||
|
||||
return {
|
||||
info = self._search_json_ld(webpage, video_id, default={})
|
||||
info.update({
|
||||
'id': video_id,
|
||||
'title': title,
|
||||
'formats': formats,
|
||||
|
@ -212,4 +213,5 @@ def _add_sub_element(element, name):
|
|||
'episode_number': int_or_none(xpath_text(playlist, 'EpisodeNumber')),
|
||||
'series': xpath_text(playlist, 'ProgrammeTitle'),
|
||||
'duartion': parse_duration(xpath_text(playlist, 'Duration')),
|
||||
}
|
||||
})
|
||||
return info
|
||||
|
|
Loading…
Reference in a new issue