projects
/
jamaendo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tons of fixes/tweaks/changes in general
[jamaendo]
/
jamaui
/
player.py
diff --git
a/jamaui/player.py
b/jamaui/player.py
index
24ec4f2
..
65cc549
100644
(file)
--- a/
jamaui/player.py
+++ b/
jamaui/player.py
@@
-359,12
+359,15
@@
class Player(object):
entry = self.playlist.next()
self.backend.play_url('mp3', entry.mp3_url())
log.debug("playing %s", entry)
entry = self.playlist.next()
self.backend.play_url('mp3', entry.mp3_url())
log.debug("playing %s", entry)
+ postoffice.notify('play', entry)
def pause(self):
self.backend.pause()
def pause(self):
self.backend.pause()
+ postoffice.notify('pause', self.playlist.current())
def stop(self):
self.backend.stop()
def stop(self):
self.backend.stop()
+ postoffice.notify('stop', self.playlist.current())
def playing(self):
return self.backend.playing()
def playing(self):
return self.backend.playing()
@@
-375,6
+378,7
@@
class Player(object):
entry = self.playlist.next()
self.backend.play_url('mp3', entry.mp3_url())
log.debug("playing %s", entry)
entry = self.playlist.next()
self.backend.play_url('mp3', entry.mp3_url())
log.debug("playing %s", entry)
+ postoffice.notify('next', entry)
else:
self.stop()
else:
self.stop()
@@
-384,6
+388,7
@@
class Player(object):
entry = self.playlist.prev()
self.backend.play_url('mp3', entry.mp3_url())
log.debug("playing %s", entry)
entry = self.playlist.prev()
self.backend.play_url('mp3', entry.mp3_url())
log.debug("playing %s", entry)
+ postoffice.notify('prev', entry)
def _on_eos(self):
log.debug("EOS!")
def _on_eos(self):
log.debug("EOS!")