[globo] remove unplayable_formats parameter

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
dove 2024-12-12 23:12:42 -03:00 committed by GitHub
parent ede30395a6
commit 27a4a3cee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ class GloboIE(InfoExtractor):
'tz': '-03:00',
'version': 1,
}).encode())
if not self.get_param('allow_unplayable_formats') and security['resource'].get('drm_protection_enabled') is True:
if traverse_obj(video, ('resource', 'drm_protection_enabled', {bool})):
self.report_drm(video_id)
main_resource = security['sources'][0]