Skip to content

Commit

Permalink
Small fix to restore tunercheck for older firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
daeks committed Sep 21, 2018
1 parent 2377e5f commit 095578d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Contents/Code/__init__.py
Expand Up @@ -12,9 +12,9 @@
from DumbTools import DumbPrefs from DumbTools import DumbPrefs


DEBUGMODE = True DEBUGMODE = True
TITLE = 'HDHR Viewer 2 (1.1.4)' TITLE = 'HDHR Viewer 2 (1.1.5)'
PREFIX = '/video/hdhrv2' PREFIX = '/video/hdhrv2'
VERSION = '1.1.4' VERSION = '1.1.5'


#GRAPHICS #GRAPHICS
ART = 'art-default.jpg' ART = 'art-default.jpg'
Expand Down Expand Up @@ -829,7 +829,7 @@ def GetVcoIcon(channel,program):
def CheckTunerAvail(ip): def CheckTunerAvail(ip):
try: try:
htmlData = urllib2.urlopen(URL_HDHR_TUNER_STATUS.format(ip=ip),timeout=TIMEOUT_LAN).read() 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) return len(tuner_avail)
except Exception as inst: except Exception as inst:
logError('CheckTunerAvail(ip):'+strError(inst)) logError('CheckTunerAvail(ip):'+strError(inst))
Expand Down

0 comments on commit 095578d

Please sign in to comment.