Don't use return values from backend in frontend.mpd.protocol.playback.seek
This commit is contained in:
parent
a91a5eb04a
commit
366f5d8fee
@ -300,7 +300,7 @@ def seek(frontend, songpos, seconds):
|
||||
"""
|
||||
if frontend.backend.playback.current_playlist_position != songpos:
|
||||
playpos(frontend, songpos)
|
||||
return frontend.backend.playback.seek(int(seconds) * 1000)
|
||||
frontend.backend.playback.seek(int(seconds) * 1000)
|
||||
|
||||
@handle_pattern(r'^seekid "(?P<cpid>\d+)" "(?P<seconds>\d+)"$')
|
||||
def seekid(frontend, cpid, seconds):
|
||||
@ -313,7 +313,7 @@ def seekid(frontend, cpid, seconds):
|
||||
"""
|
||||
if frontend.backend.playback.current_cpid != cpid:
|
||||
playid(frontend, cpid)
|
||||
return frontend.backend.playback.seek(int(seconds) * 1000)
|
||||
frontend.backend.playback.seek(int(seconds) * 1000)
|
||||
|
||||
@handle_pattern(r'^setvol "(?P<volume>[-+]*\d+)"$')
|
||||
def setvol(frontend, volume):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user