mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[ie/francetv:site] Fix extractor (#14082)
Closes #14072 Authored by: bashonly
This commit is contained in:
parent
a97f4cb57e
commit
7b8a8abb98
1 changed files with 1 additions and 7 deletions
|
|
@ -363,13 +363,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
|
||||||
display_id = self._match_id(url)
|
display_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
nextjs_data = self._search_nextjs_v13_data(webpage, display_id)
|
nextjs_data = self._search_nextjs_v13_data(webpage, display_id)
|
||||||
|
video_id = get_first(nextjs_data, ('options', 'id', {str}))
|
||||||
if get_first(nextjs_data, ('isLive', {bool})):
|
|
||||||
# For livestreams we need the id of the stream instead of the currently airing episode id
|
|
||||||
video_id = get_first(nextjs_data, ('options', 'id', {str}))
|
|
||||||
else:
|
|
||||||
video_id = get_first(nextjs_data, ('video', ('playerReplayId', 'siId'), {str}))
|
|
||||||
|
|
||||||
if not video_id:
|
if not video_id:
|
||||||
raise ExtractorError('Unable to extract video ID')
|
raise ExtractorError('Unable to extract video ID')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue