Skip to content

Commit

Permalink
Tune restart behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
alyosha committed Sep 6, 2020
1 parent ba7bdaf commit 26c130a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file added doc/tags
Empty file.
4 changes: 2 additions & 2 deletions python/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def restart(self):
# for example lacks trackid metadata, making Seek impossible.
# For this reason we hack restart to prioritize universal support.
self.iface.Previous()
sleep(0.3) # Need to sleep a bit or the Next call will be ignored.
sleep(0.5) # Need to sleep a bit or the Next call will be ignored.
if self.get_title() == start_track:
return
self.iface.Next()
Expand All @@ -48,4 +48,4 @@ def get_metadata(self):
return self.get_property('Metadata')

def adjust_volume(self, value):
self.set_property('Volume', value)
self.set_property('Volume', value)

0 comments on commit 26c130a

Please sign in to comment.