Permalink
Browse files

Merge pull request #71 from daeks/master

Small fix to restore tunercheck for older firmware
  • Loading branch information...
zynine- committed Sep 22, 2018
2 parents 419847a + 095578d commit 97639e50b6d0cfb6a97301963665e641e4348dac
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 97639e5

Please sign in to comment.