From 095578d83f72661774478a2320afa9b8c724d241 Mon Sep 17 00:00:00 2001 From: daeks Date: Fri, 21 Sep 2018 07:31:37 +0200 Subject: [PATCH] Small fix to restore tunercheck for older firmware --- Contents/Code/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 5c43978..9974fdb 100644 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -12,9 +12,9 @@ from DumbTools import DumbPrefs DEBUGMODE = True -TITLE = 'HDHR Viewer 2 (1.1.4)' +TITLE = 'HDHR Viewer 2 (1.1.5)' PREFIX = '/video/hdhrv2' -VERSION = '1.1.4' +VERSION = '1.1.5' #GRAPHICS ART = 'art-default.jpg' @@ -829,7 +829,7 @@ def GetVcoIcon(channel,program): def CheckTunerAvail(ip): try: htmlData = urllib2.urlopen(URL_HDHR_TUNER_STATUS.format(ip=ip),timeout=TIMEOUT_LAN).read() - tuner_avail = re.findall('>not in use<',htmlData) + tuner_avail = re.findall('>none<|>not in use<',htmlData) return len(tuner_avail) except Exception as inst: logError('CheckTunerAvail(ip):'+strError(inst))