Compare commits

...

2 Commits

Author SHA1 Message Date
DTrombett
8fe0c26b81
Always check for drm 2025-04-22 18:31:17 +02:00
D Trombett
40eaebfa84
Add test description
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
2025-04-22 18:25:56 +02:00

View File

@ -322,6 +322,7 @@ class RaiPlayIE(RaiBaseIE):
'upload_date': '20120924',
},
}, {
# checking program_info gives false positive for DRM
'url': 'https://www.raiplay.it/video/2022/10/Ad-ogni-costo---Un-giorno-in-Pretura---Puntata-del-15102022-1dfd1295-ea38-4bac-b51e-f87e2881693b.html',
'md5': '572c6f711b7c5f2d670ba419b4ae3b08',
'info_dict': {
@ -360,9 +361,8 @@ class RaiPlayIE(RaiBaseIE):
media = self._download_json(
f'{base}.json', video_id, 'Downloading video JSON')
if not self.get_param('allow_unplayable_formats'):
if traverse_obj(media, ('rights_management', 'rights', 'drm')):
self.report_drm(video_id)
if traverse_obj(media, ('rights_management', 'rights', 'drm')):
self.report_drm(video_id)
video = media['video']
relinker_info = self._extract_relinker_info(video['content_url'], video_id)