mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-23 02:57:45 -05:00
[player/jsonapi] Do not report error on skip next/prev if end/start of
queue is reached
This commit is contained in:
@@ -1889,8 +1889,10 @@ jsonapi_reply_player_next(struct httpd_request *hreq)
|
||||
ret = player_playback_next();
|
||||
if (ret < 0)
|
||||
{
|
||||
DPRINTF(E_LOG, L_WEB, "Error switching to next item.\n");
|
||||
return HTTP_INTERNAL;
|
||||
// If skipping to the next song failed, it is most likely we reached the end of the queue,
|
||||
// ignore the error (play status change will be reported to the client over the websocket)
|
||||
DPRINTF(E_DBG, L_WEB, "Error switching to next item (possibly end of queue reached).\n");
|
||||
return HTTP_NOCONTENT;
|
||||
}
|
||||
|
||||
ret = player_playback_start();
|
||||
|
||||
Reference in New Issue
Block a user