fixed play_next and play_prev if state is pause by removing fade call
This commit is contained in:
parent
8a6c26fad3
commit
42720a4559
|
@ -36,9 +36,12 @@ def play_next(client):
|
||||||
""" skip to next in playlist """
|
""" skip to next in playlist """
|
||||||
client_status = client.status()
|
client_status = client.status()
|
||||||
current_vol = int(client_status['volume'])
|
current_vol = int(client_status['volume'])
|
||||||
fade('out', current_vol, client)
|
if current_vol > 0:
|
||||||
client.pause()
|
fade('out', current_vol, client)
|
||||||
client.setvol(current_vol)
|
client.pause()
|
||||||
|
client.setvol(current_vol)
|
||||||
|
else:
|
||||||
|
client.setvol(100)
|
||||||
client.next()
|
client.next()
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,7 +49,10 @@ def play_prev(client):
|
||||||
""" skip to previous in playlist """
|
""" skip to previous in playlist """
|
||||||
client_status = client.status()
|
client_status = client.status()
|
||||||
current_vol = int(client_status['volume'])
|
current_vol = int(client_status['volume'])
|
||||||
fade('out', current_vol, client)
|
if current_vol > 0:
|
||||||
client.pause()
|
fade('out', current_vol, client)
|
||||||
client.setvol(current_vol)
|
client.pause()
|
||||||
|
client.setvol(current_vol)
|
||||||
|
else:
|
||||||
|
client.setvol(100)
|
||||||
client.previous()
|
client.previous()
|
||||||
|
|
Loading…
Reference in New Issue