aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/orf.py
diff options
context:
space:
mode:
authorsepro <4618135+seproDev@users.noreply.github.com>2024-07-01 12:43:52 +0200
committerGitHub <noreply@github.com>2024-07-01 12:43:52 +0200
commite6a22834df1776ec4e486526f6df2bf53cb7e06f (patch)
treee02dced74822ce0d11870b1408d963ee054caece /yt_dlp/extractor/orf.py
parentb8da8a98f897599095d4ef1644b8c5fd39921118 (diff)
[ie/orf:on] Allow downloading of video in segments (#10314)
Closes #10142 Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/orf.py')
-rw-r--r--yt_dlp/extractor/orf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/orf.py b/yt_dlp/extractor/orf.py
index f1403d920..9c37a54d6 100644
--- a/yt_dlp/extractor/orf.py
+++ b/yt_dlp/extractor/orf.py
@@ -550,7 +550,8 @@ class ORFONIE(InfoExtractor):
return self._extract_video_info(segment_id, selected_segment)
# Even some segmented videos have an unsegmented version available in API response root
- if not traverse_obj(api_json, ('sources', ..., ..., 'src', {url_or_none})):
+ if (self._configuration_arg('prefer_segments_playlist')
+ or not traverse_obj(api_json, ('sources', ..., ..., 'src', {url_or_none}))):
return self.playlist_result(
(self._extract_video_info(str(segment['id']), segment) for segment in segments),
video_id, **self._parse_metadata(api_json), multi_video=True)