File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ##0 .9.11 (2016-10-27)
2+ - Fix HDHomeRun guide not following "XMLTV Next Program Count" settings.
3+
14##0 .9.10 (2016-10-24)
25- Changed Max Duration to 4hr, some Android device doesn't seem like like 10hr.
36
Original file line number Diff line number Diff line change 1- # HDHR Viewer V2 v0.9.10
1+ # HDHR Viewer V2 v0.9.11
22
33import time
44import string
88from lxml import etree
99
1010DEBUGMODE = True
11- TITLE = 'HDHR Viewer 2 (0.9.10 )'
11+ TITLE = 'HDHR Viewer 2 (0.9.11 )'
1212PREFIX = '/video/hdhrv2'
13- VERSION = '0.9.10 '
13+ VERSION = '0.9.11 '
1414
1515
1616#GRAPHICS
@@ -455,6 +455,7 @@ def ProgramMap_HDHomeRun(jsonChannelPrograms,query=None):
455455 for jsonChannelProgram in jsonChannelPrograms :
456456 program = None
457457 guideNumber = jsonChannelProgram ['GuideNumber' ]
458+ nextCount = 0
458459 for i , guide in enumerate (jsonChannelProgram .get ('Guide' ,'' )):
459460 guideData = ParseProgramJson (XMLTV_MODE_HDHOMERUN ,guide )
460461 guideTitle = guideData .title # For Search Func.
@@ -468,8 +469,9 @@ def ProgramMap_HDHomeRun(jsonChannelPrograms,query=None):
468469 program = guideData
469470
470471 # Next Programs
471- if (guideData .startTime > t ) and (program is not None ) and (query is not None ):
472+ if (guideData .startTime > t ) and (program is not None ) and (query is None ) and ( nextCount < int ( Prefs [ "xmltv_show_next_programs_count" ])) :
472473 program .next .append (guideData )
474+ nextCount += 1
473475
474476 #If Programs exist
475477 if program != None :
You can’t perform that action at this time.
0 commit comments