File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,13 @@ def _unzip_widevine_cdm(self, zip_path):
230
230
self ._log ('Failed to find Widevine CDM file in {0}' .format (zip_path ))
231
231
return False
232
232
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
+
233
240
def check_for_drm (self ):
234
241
"""Main function for ensuring that specified DRM system is installed and available."""
235
242
if self .drm :
@@ -263,14 +270,7 @@ def check_inputstream(self):
263
270
else :
264
271
return False
265
272
elif self .protocol == 'hls' :
266
- return self .supports_hls ()
273
+ return self ._supports_hls ()
267
274
else :
268
275
self ._log ('{0} is installed and enabled.' .format (self ._inputstream_addon ))
269
276
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
You can’t perform that action at this time.
0 commit comments