[FastChannelChange] FCC is available only for dvb services (service type == 1)
authorhschang <chang@dev3>
Mon, 13 Feb 2017 04:49:36 +0000 (13:49 +0900)
committerhschang <chang@dev3>
Mon, 13 Feb 2017 04:51:36 +0000 (13:51 +0900)
lib/python/Plugins/SystemPlugins/FastChannelChange/plugin.py

index 7c3b2cc..cc19a78 100644 (file)
@@ -233,10 +233,13 @@ class FCCSupport:
                if isinstance(sref, str):
                        sref = eServiceReference(sref)
 
-               if sref.getPath(): # is PVR? or streaming?
+               if sref.type != 1:
                        playable = False
 
-               if int(sref.getData(0)) in (2, 10): # is RADIO?
+               elif sref.getPath(): # is PVR? or streaming?
+                       playable = False
+
+               elif int(sref.getData(0)) in (2, 10): # is RADIO?
                        playable = False
 
                return playable