Skip to content

Commit

Permalink
bump to 1.8.7 (fix playpause button)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Demian committed Jun 11, 2015
1 parent f747a61 commit 31b2c50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ http://skyserver5.skydisc.net:8000
You can use relative and absolute paths as well as basically any audio source/format, as long as you have the respective gstreamer codec installed.

## Changelog
- v1.8.7 (2015-06-11): Pressing play will now properly pause interlude music before resuming spotify playback.
- v1.8.6 (2015-05-10): Minor refactoring and removed incomplete "fix" for [issue #44](https://github.com/mikar/blockify/issues/44).
- v1.8.5 (2015-05-09): Signal cleanups and [issue #44](https://github.com/mikar/blockify/issues/44) again.
- v1.8.4 (2015-05-08): Add additional signals for both spotify and interlude controls (prev/next/playpause, ...), see Controls/Actions section in this README
Expand Down
5 changes: 4 additions & 1 deletion blockify/blockifyui.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,10 @@ def on_togglelist(self, widget):
self.editor.destroy()

def on_toggleplay_btn(self, widget):
self.b.dbus.playpause()
if not self.b.spotify_is_playing():
self.b.player.try_resume_spotify_playback(True)
else:
self.b.dbus.playpause()

def on_next_btn(self, widget):
self.b.next()
Expand Down
4 changes: 2 additions & 2 deletions blockify/interludeplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def is_valid_uri(self, item):

return not any(exclusions) and any(valid_format)

def try_resume_spotify_playback(self):
if self.is_playing() and not self.b.found:
def try_resume_spotify_playback(self, ignore_player=False):
if (self.is_playing() or ignore_player) and not self.b.found:
self.pause()
if not self.b.spotify_is_playing():
self.b.dbus.playpause()
Expand Down
2 changes: 1 addition & 1 deletion blockify/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
except ImportError:
log.error("ImportError: Please install docopt to use the CLI.")

VERSION = "1.8.6"
VERSION = "1.8.7"
CONFIG = None
CONFIG_DIR = os.path.join(os.path.expanduser("~"), ".config/blockify")
CONFIG_FILE = os.path.join(CONFIG_DIR, "blockify.ini")
Expand Down

0 comments on commit 31b2c50

Please sign in to comment.