Skip to content

Commit

Permalink
Merge pull request #17 from zynine-/multi
Browse files Browse the repository at this point in the history
0.9.5
  • Loading branch information
zynine- authored Oct 21, 2016
2 parents 79ea97c + b891c59 commit 2f0ffce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
##0.9.5 (2016-10-20)
- Fix guide not appear if one of the channels is missing json 'Guide' key.

##0.9.4 (2016-10-20)
- Fix channel icons not detected properly in RestAPI mode.
- Increase LAN timeout to 1 second.
Expand Down
6 changes: 3 additions & 3 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
#HDHOMERUN GUIDE URL
URL_HDHR_DISCOVER = 'http://{ip}/discover.json'
URL_HDHR_DISCOVER_DEVICES = 'http://my.hdhomerun.com/discover'
URL_HDHR_GUIDE = 'http://my.hdhomerun.com/api/guide.php?DeviceAuth={deviceAuth}'
#URL_HDHR_GUIDE = 'http://my.hdhomerun.com/api/guide.php?DeviceAuth={deviceAuth}'
URL_HDHR_GUIDE = 'http://192.168.1.11/api/guide.php?DeviceAuth={deviceAuth}'
URL_HDHR_LINEUP = 'http://{ip}/lineup.json'
URL_HDHR_STREAM = 'http://{ip}:5004/{tuner}/v{guideNumber}'
CACHETIME_HDHR_GUIDE = 3600 # (s) Default: 3600 = 1 hour
Expand Down Expand Up @@ -124,7 +125,6 @@ def AllChannelsMenu(tuneridx):
tuneridx=int(tuneridx)
tuner=HDHRV2.tunerDevices[tuneridx]
allChannels = LoadAllChannels(tuneridx)
logType(allChannels)
PopulateProgramInfo(tuneridx, allChannels.list, False)
return AddChannelObjectContainer(oc,tuneridx,tuner['LocalIP'], allChannels.list,False)
#return AddChannelObjectContainer(oc,tuneridx,'test', allChannels.list)
Expand Down Expand Up @@ -435,7 +435,7 @@ def ProgramMap_HDHomeRun(jsonChannelPrograms,query=None):
for jsonChannelProgram in jsonChannelPrograms:
program=None
guideNumber = jsonChannelProgram['GuideNumber']
for i, guide in enumerate(jsonChannelProgram['Guide']):
for i, guide in enumerate(jsonChannelProgram.get('Guide','')):
guideData = ParseProgramJson(XMLTV_MODE_HDHOMERUN,guide)
guideTitle = guideData.title # For Search Func.
guideDesc = guideData.desc # For Search Func.
Expand Down

0 comments on commit 2f0ffce

Please sign in to comment.