Skip to content

Commit 7ed6e6c

Browse files
Make supports_hls private
1 parent 44d5bde commit 7ed6e6c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/inputstreamhelper.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ def _unzip_widevine_cdm(self, zip_path):
230230
self._log('Failed to find Widevine CDM file in {0}'.format(zip_path))
231231
return False
232232

233+
def _supports_hls(self):
234+
if LooseVersion(self._inputstream_version()) >= LooseVersion(config.HLS_MINIMUM_IA_VERSION):
235+
return True
236+
else:
237+
self._log('HLS is not supported on {0} version {1}'.format(self._inputstream_addon), self._inputstream_version())
238+
return False
239+
233240
def check_for_drm(self):
234241
"""Main function for ensuring that specified DRM system is installed and available."""
235242
if self.drm:
@@ -263,14 +270,7 @@ def check_inputstream(self):
263270
else:
264271
return False
265272
elif self.protocol == 'hls':
266-
return self.supports_hls()
273+
return self._supports_hls()
267274
else:
268275
self._log('{0} is installed and enabled.'.format(self._inputstream_addon))
269276
return self.check_for_drm()
270-
271-
def supports_hls(self):
272-
if self.protocol == 'hls' and LooseVersion(self._inputstream_version()) >= LooseVersion(config.HLS_MINIMUM_IA_VERSION):
273-
return True
274-
else:
275-
self._log('HLS is not supported on {0} version {1}'.format(self._inputstream_addon), self._inputstream_version())
276-
return False

0 commit comments

Comments
 (0)