FIX: Fix the pause card
This commit is contained in:
parent
f036f54fa0
commit
0af1a86310
|
@ -190,7 +190,7 @@ class VolumeCard(Card):
|
||||||
try:
|
try:
|
||||||
mopidy_core.mixer.set_volume(int(self.parameter))
|
mopidy_core.mixer.set_volume(int(self.parameter))
|
||||||
except ValueError as ex:
|
except ValueError as ex:
|
||||||
LOGGER.error(ex)
|
LOGGER.error(str(ex))
|
||||||
|
|
||||||
|
|
||||||
class StopCard(Card):
|
class StopCard(Card):
|
||||||
|
@ -217,7 +217,7 @@ class PauseCard(Card):
|
||||||
'''
|
'''
|
||||||
playback = mopidy_core.playback
|
playback = mopidy_core.playback
|
||||||
|
|
||||||
if playback.get_state() == 'playing':
|
if playback.get_state().get() == 'playing':
|
||||||
LOGGER.info('Pausing the playback')
|
LOGGER.info('Pausing the playback')
|
||||||
playback.pause()
|
playback.pause()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue