mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-05 06:56:03 +00:00
fix chapters (my bad)
Authored by: bashonly
This commit is contained in:
parent
8dba129c8a
commit
df5099e9ba
@ -55,7 +55,7 @@ class ZDFBaseIE(InfoExtractor):
|
|||||||
return int(mobj.group('width')) / int(mobj.group('height')) if mobj else None
|
return int(mobj.group('width')) / int(mobj.group('height')) if mobj else None
|
||||||
|
|
||||||
def _extract_chapters(self, data):
|
def _extract_chapters(self, data):
|
||||||
return traverse_obj(data, (lambda _, v: isinstance(v['anchorOffset'], (int, float)), {
|
return traverse_obj(data, (lambda _, v: v['anchorOffset'], {
|
||||||
'start_time': ('anchorOffset', {float_or_none}),
|
'start_time': ('anchorOffset', {float_or_none}),
|
||||||
'title': ('anchorLabel', {str}),
|
'title': ('anchorLabel', {str}),
|
||||||
})) or None
|
})) or None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user