Skip to content

A feature-rich command-line audio/video downloader

[ie/francetv:site] Fix livestream extraction (#12316)

bashonly1295bbedd45f
diff --git a/yt_dlp/extractor/francetv.py b/yt_dlp/extractor/francetv.py
index 01b18d8da4..c6036b306f 100644
--- a/yt_dlp/extractor/francetv.py
+++ b/yt_dlp/extractor/francetv.py
@@ -358,7 +358,8 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
# For livestreams we need the id of the stream instead of the currently airing episode id
video_id = traverse_obj(nextjs_data, (
..., ..., 'children', ..., 'children', ..., 'children', ..., 'children', ..., ...,
- 'children', ..., ..., 'children', ..., ..., 'children', ..., 'options', 'id', {str}, any))
+ 'children', ..., ..., 'children', ..., ..., 'children', (..., (..., ...)),
+ 'options', 'id', {str}, any))
else:
video_id = traverse_obj(nextjs_data, (
..., ..., ..., 'children',