mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[httpd_daap] Workaround for Android "Remote for iTunes" requesting playlist 0
See issue #505
This commit is contained in:
parent
8012be596e
commit
e79beb6877
@ -1373,6 +1373,15 @@ daap_reply_plsonglist(struct httpd_request *hreq)
|
||||
return DAAP_REPLY_ERROR;
|
||||
}
|
||||
|
||||
// This is a work-around for Remote for iTunes that for unknown reasons
|
||||
// sometimes requests playlist 0
|
||||
if (playlist == 0)
|
||||
{
|
||||
DPRINTF(E_LOG, L_DAAP, "Client '%s' made invalid request for playlist 0, returning playlist 1\n", hreq->user_agent);
|
||||
|
||||
playlist = 1;
|
||||
}
|
||||
|
||||
return daap_reply_songlist_generic(hreq, playlist);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user