Skip to content

Commit

Permalink
fix timeout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
im85288 committed Apr 20, 2016
1 parent c27e046 commit b4c5344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<addon id="service.nextup.notification" name="Nextup Service Notification" provider-name="im85288" version="1.0.19">
<addon id="service.nextup.notification" name="Nextup Service Notification" provider-name="im85288" version="1.0.20">
<requires>
<import addon="xbmc.python" version="2.20.0"/>
<import addon="script.module.addon.signals" version="0.0.1"/>
Expand Down
8 changes: 2 additions & 6 deletions resources/lib/Player.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ def autoPlayPlayback(self):
result = unicode(result, 'utf-8', errors='ignore')
result = json.loads(result)
self.logMsg("Got details of next up episode %s" % str(result), 2)
monitor = xbmc.Monitor()
monitor.waitForAbort(0.1)
del monitor
xbmc.sleep(100)

# Find the next unwatched and the newest added episodes
if "result" in result and "episodes" in result["result"]:
Expand Down Expand Up @@ -368,9 +366,7 @@ def autoPlayPlayback(self):
stillWatchingPage.show()
while xbmc.Player().isPlaying() and (
totalTime - playTime > 1) and not nextUpPage.isCancel() and not nextUpPage.isWatchNow() and not stillWatchingPage.isStillWatching() and not stillWatchingPage.isCancel():
monitor = xbmc.Monitor()
monitor.waitForAbort(0.1)
del monitor
xbmc.sleep(100)
try:
playTime = xbmc.Player().getTime()
totalTime = xbmc.Player().getTotalTime()
Expand Down

0 comments on commit b4c5344

Please sign in to comment.