Skip to content

Commit 0440857

Browse files
Only check for DRM on inputstream.adaptive
1 parent a247d55 commit 0440857

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/inputstreamhelper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ def _supports_hls(self):
236236
self._log('HLS is not supported on {0} version {1}'.format(self._inputstream_addon, self._inputstream_version()))
237237
return False
238238

239-
def _check_for_drm(self):
239+
def _check_drm(self):
240240
"""Main function for ensuring that specified DRM system is installed and available."""
241-
if self.drm:
241+
if self.drm and self._inputstream_addon == 'inputstream.adaptive':
242242
if self.drm == 'widevine':
243243
if not self._supports_widevine():
244244
return False
@@ -271,4 +271,4 @@ def check_inputstream(self):
271271
return False
272272

273273
self._log('{0} is installed and enabled.'.format(self._inputstream_addon))
274-
return self._check_for_drm()
274+
return self._check_drm()

0 commit comments

Comments
 (0)