File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -524,15 +524,16 @@ def _supports_hls(self):
524
524
525
525
def _check_drm (self ):
526
526
"""Main function for ensuring that specified DRM system is installed and available."""
527
- if self .drm and self ._inputstream_addon == 'inputstream.adaptive' :
528
- if self .drm == 'widevine' :
529
- if not self ._supports_widevine ():
530
- return False
531
- if not self ._has_widevine_cdm ():
532
- if 'x86' in self ._arch ():
533
- return self ._install_widevine_cdm_x86 ()
534
- else :
535
- return self ._install_widevine_cdm_arm ()
527
+ if not self .drm or not self ._inputstream_addon == 'inputstream.adaptive' :
528
+ return True
529
+ if self .drm == 'widevine' :
530
+ if not self ._supports_widevine ():
531
+ return False
532
+ if not self ._has_widevine_cdm ():
533
+ if 'x86' in self ._arch ():
534
+ return self ._install_widevine_cdm_x86 ()
535
+ else :
536
+ return self ._install_widevine_cdm_arm ()
536
537
537
538
return True
538
539
You can’t perform that action at this time.
0 commit comments