mirror of
https://github.com/beetbox/beets.git
synced 2026-01-18 22:22:18 +01:00
Register song changes when switching from song to stream URL
This commit is contained in:
parent
e08f28d865
commit
eb338d208b
1 changed files with 5 additions and 4 deletions
|
|
@ -256,10 +256,6 @@ class MPDStats(object):
|
|||
if not path:
|
||||
return
|
||||
|
||||
if is_url(path):
|
||||
self._log.info(u'playing stream {0}', displayable_path(path))
|
||||
return
|
||||
|
||||
played, duration = map(int, status['time'].split(':', 1))
|
||||
remaining = duration - played
|
||||
|
||||
|
|
@ -276,6 +272,11 @@ class MPDStats(object):
|
|||
if diff <= self.time_threshold:
|
||||
return
|
||||
|
||||
if is_url(path):
|
||||
self._log.info(u'playing stream {0}', displayable_path(path))
|
||||
self.now_playing = None
|
||||
return
|
||||
|
||||
self._log.info(u'playing {0}', displayable_path(path))
|
||||
|
||||
self.now_playing = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue