kopia lustrzana https://github.com/yt-dlp/yt-dlp
[on.orf.at] add better drm detection
some videos formats are not reported as DRM protected fixes: #9652
rodzic
8c6550ae43
commit
501f7e068e
|
@ -590,6 +590,9 @@ class ORFONIE(InfoExtractor):
|
||||||
api_json = self._download_json(
|
api_json = self._download_json(
|
||||||
f'https://api-tvthek.orf.at/api/v4.3/public/episode/encrypted/{encrypted_id}', display_id)
|
f'https://api-tvthek.orf.at/api/v4.3/public/episode/encrypted/{encrypted_id}', display_id)
|
||||||
|
|
||||||
|
if traverse_obj(api_json, 'is_drm_protected'):
|
||||||
|
self.report_drm(video_id)
|
||||||
|
|
||||||
formats, subtitles = [], {}
|
formats, subtitles = [], {}
|
||||||
for manifest_type in traverse_obj(api_json, ('sources', {dict.keys}, ...)):
|
for manifest_type in traverse_obj(api_json, ('sources', {dict.keys}, ...)):
|
||||||
for manifest_url in traverse_obj(api_json, ('sources', manifest_type, ..., 'src', {url_or_none})):
|
for manifest_url in traverse_obj(api_json, ('sources', manifest_type, ..., 'src', {url_or_none})):
|
||||||
|
|
Ładowanie…
Reference in New Issue