mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-09 18:33:47 +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
|
||||
|
||||
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}),
|
||||
'title': ('anchorLabel', {str}),
|
||||
})) or None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user