Skip to content

Commit 77b6d7a

Browse files
cdm_path is not required on Android
1 parent 88114ed commit 77b6d7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/inputstreamhelper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def _inputstream_version(self):
6262
return addon.getAddonInfo('version')
6363

6464
def _has_widevine_cdm(self):
65-
if not xbmcvfs.exists(self._cdm_path()):
66-
xbmcvfs.mkdir(self._cdm_path())
6765
if xbmc.getCondVisibility('system.platform.android'): # widevine is built in on android
6866
return True
6967
else:
68+
if not xbmcvfs.exists(self._cdm_path()):
69+
xbmcvfs.mkdir(self._cdm_path())
7070
for filename in os.listdir(self._cdm_path()):
7171
if 'widevine' in filename and filename.endswith(config.WIDEVINE_CDM_EXTENSIONS):
7272
self._log('Found Widevine binary at {0}'.format(os.path.join(self._cdm_path(), filename)))

0 commit comments

Comments
 (0)