Permalink
Browse files

Small fix to restore tunercheck for older firmware

  • Loading branch information...
daeks committed Sep 21, 2018
1 parent 2377e5f commit 095578d83f72661774478a2320afa9b8c724d241
Showing with 3 additions and 3 deletions.
  1. +3 −3 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))

0 comments on commit 095578d

Please sign in to comment.