Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
selfisch committed Nov 9, 2017
1 parent 51dbf35 commit d87aae9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions conf/func_mopidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ def randomPlaylist():


def playList(uri, play_mode):
logging.debug('mopidy.playList uri: ' + uri)
logging.debug('mopidy.playList play_mode: ' + play_mode)
mopidy.mpdConnect()
client.clear()
client.add(uri)
if play_mode == 'play':
client.random(0)
client.play()
elif play_mode == 'shuffle':
client.random(1)
client.play()
mopidy.mpdDisconnect()
logging.debug('mopidy.playList uri: ' + uri)
logging.debug('mopidy.playList play_mode: ' + play_mode)
mopidy.mpdConnect()
client.clear()
client.add(uri)
if play_mode == 'play':
client.random(0)
client.play()
elif play_mode == 'shuffle':
client.random(1)
client.play()
mopidy.mpdDisconnect()


def play():
Expand Down

0 comments on commit d87aae9

Please sign in to comment.