Skip to content

Commit

Permalink
bug fix in player for waitForAbort using seconds rather than millisec…
Browse files Browse the repository at this point in the history
…onds
  • Loading branch information
im85288 committed Jun 22, 2020
1 parent e250c48 commit 3760550
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 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.upnext" name="Up Next" version="1.1.1" provider-name="im85288">
<addon id="service.upnext" name="Up Next" version="1.1.2" provider-name="im85288">
<requires>
<import addon="xbmc.python" version="2.26.0"/>
</requires>
Expand Down Expand Up @@ -40,6 +40,10 @@ Många befintliga tillägg integreras redan med den här utanför lådan-tjänst
<platform>all</platform>
<license>GPL-2.0-only</license>
<news>

### v1.1.2 (2020-06-22)
- Bug fix for change from sleep to waitForAbort using seconds and not ms

### v1.1.1 (2020-06-21)
- Avoid conflict with external players
- Restore "Ignore Playlist" option
Expand Down
3 changes: 2 additions & 1 deletion resources/lib/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class UpNextPlayer(Player):
def __init__(self):
self.api = Api()
self.state = State()
self.monitor = Monitor()
Player.__init__(self)

def set_last_file(self, filename):
Expand All @@ -31,7 +32,7 @@ def disable_tracking(self):

def onPlayBackStarted(self): # pylint: disable=invalid-name
"""Will be called when kodi starts playing a file"""
Monitor().waitForAbort(5000)
self.monitor.waitForAbort(5)
if not getCondVisibility('videoplayer.content(episodes)'):
return
self.state.track = True
Expand Down

0 comments on commit 3760550

Please sign in to comment.