@@ -99,7 +99,8 @@ def _cdm_path(self):
99
99
100
100
return cdm_path
101
101
102
- def _inputstream_cdm_path (self ):
102
+ def _ia_cdm_path (self ):
103
+ """Return the specified CDM path for inputstream.adaptive."""
103
104
addon = xbmcaddon .Addon ('inputstream.adaptive' )
104
105
cdm_path = xbmc .translatePath (addon .getSetting ('DECRYPTERPATH' ))
105
106
if not xbmcvfs .exists (cdm_path ):
@@ -153,10 +154,10 @@ def _has_widevine_cdm(self):
153
154
if xbmc .getCondVisibility ('system.platform.android' ): # widevine is built in on android
154
155
return True
155
156
else :
156
- for filename in os .listdir (self ._inputstream_cdm_path ()):
157
+ for filename in os .listdir (self ._ia_cdm_path ()):
157
158
if 'widevine' in filename and filename .endswith (config .CDM_EXTENSIONS ):
158
159
self ._log (
159
- 'Found Widevine binary at {0}' .format (os .path .join (self ._inputstream_cdm_path (), filename )))
160
+ 'Found Widevine binary at {0}' .format (os .path .join (self ._ia_cdm_path (), filename )))
160
161
return True
161
162
162
163
self ._log ('Widevine is not installed.' )
@@ -419,7 +420,7 @@ def _install_cdm(self):
419
420
for cdm_file in os .listdir (self ._cdm_path ()):
420
421
if cdm_file .endswith (config .CDM_EXTENSIONS ):
421
422
cdm_path_addon = os .path .join (self ._cdm_path (), cdm_file )
422
- cdm_path_inputstream = os .path .join (self ._inputstream_cdm_path (), cdm_file )
423
+ cdm_path_inputstream = os .path .join (self ._ia_cdm_path (), cdm_file )
423
424
if self ._os == 'Windows' : # don't symlink on Windows
424
425
shutil .copyfile (cdm_path_addon , cdm_path_inputstream )
425
426
else :
0 commit comments