2019-08-04, 14:59
(2019-07-05, 20:30)eracknaphobia Wrote: [ -> ]There was a stupid typo in my code. I've updated the version in my repo (2019.7.5) should fix the goto date issue.
I can confirm that this works. Great work, keep it up.
While the new 60 fps feature on nhl.tv is nice, it is unfortunate that the video interface creates spoilers, such as a skip bar (progress bar) that you cannot truly disable. All you can do is try to not hover the mouse cursor above the video layer so that the video controls remain hidden. Not really a solution when you want to start the game, pause the game or skip forwards/backwards. Further, with multiple screen setups, one can move the mouse cursor above the video layer accidently.
This is all avoidable in KODI with a user customized DialogSeekBar.xml file.
Really glad you have this tool... keep it up.
BTW; I created a custom, macro like command sequence for live games that start time shifted, i.e. from the beginning. The current code in the nhl_tv.py file results in the following behaviour: The live feed starts and displays a few frames (maybe 10 frames) live (i.e. not from the beginning). After those 10 frames, it skips to the beginning. This behaviour means that for a fraction of a second, the viewer sees content from the game as it has progressed, like a sequence from the 2nd, 3rd or even overtime period. This can give away information if one happen to look at the scoreboard, or if the PBP announcer mentions the current score at that exact moment.
This is my customized code section of the nhl_tv.py file (with the original code's copyright belonging to eracknaphobia and licensed under the same conditions):
Code:
xbmcplugin.setResolvedUrl(addon_handle, True, listitem)
if x == 1:
while not xbmc.Player().isPlayingVideo():
xbmc.executebuiltin('Mute')
xbmc.executebuiltin('Minimize')
xbmc.Monitor().waitForAbort(4.00)
if xbmc.Player().isPlayingVideo():
start_time = string_to_date(start_time, '%Y-%m-%dT%H:%M:%SZ')
seek_secs = int((start_time - datetime.utcnow()).total_seconds())
xbmc.log("seconds seek = " + str(seek_secs))
xbmc.executebuiltin('Seek(' + str(seek_secs) + ')')
xbmc.executebuiltin('Action(Back)')
xbmc.executebuiltin('Action(Back)')
xbmc.executebuiltin('Action(Back)')
xbmc.executebuiltin('Action(Back)')
else:
xbmcplugin.setResolvedUrl(addon_handle, False, listitem)
This results in KODI being minimized to the task bar with the sound muted and a 4 second delay while KODI is minimized. In the background, KODI will revert to the very top menu so that one does not return to the NHL game selection menu in cases of stopped streams. If for instance, the stream stops due to a network error, returning to the NHL game selection menu would result in the viewer seeing if the game is currently in 2nd or 3rd OT. This spoiler is avoided due to KODI having returned to the top menu (all in the background while the video is playing).