mirror of
https://github.com/owntone/owntone-server.git
synced 2025-05-24 02:46:17 -04:00
[spotify] Don't log "Unexpected JSON" when getting a null element
Instead log a debug message. Ref issue #1892.
This commit is contained in:
parent
3ccd117812
commit
4154a20cda
@ -767,8 +767,9 @@ request_pagingobject_endpoint(const char *href, paging_item_cb item_cb, paging_r
|
|||||||
{
|
{
|
||||||
item = json_object_array_get_idx(items, i);
|
item = json_object_array_get_idx(items, i);
|
||||||
if (!item)
|
if (!item)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_SPOTIFY, "Unexpected JSON: no item at index %d in '%s' (API endpoint: '%s')\n",
|
// Occasionally Spotify returns a json array with null elements
|
||||||
|
DPRINTF(E_DBG, L_SPOTIFY, "No item at index %d in '%s' (API endpoint: '%s')\n",
|
||||||
i, json_object_to_json_string(items), href);
|
i, json_object_to_json_string(items), href);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user