mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-25 21:53:17 -05:00
More debugging
This commit is contained in:
parent
01f976eef6
commit
9a943fdcd0
@ -429,6 +429,12 @@ DAAP_BLOCK *daap_response_playlists(char *name) {
|
|||||||
henum=db_playlist_enum_begin();
|
henum=db_playlist_enum_begin();
|
||||||
while(henum) {
|
while(henum) {
|
||||||
playlistid=db_playlist_enum(&henum);
|
playlistid=db_playlist_enum(&henum);
|
||||||
|
DPRINTF(ERR_DEBUG,"Returning playlist %d\n",playlistid);
|
||||||
|
DPRINTF(ERR_DEBUG," -- Songs: %d\n",
|
||||||
|
db_get_playlist_entry_count(playlistid));
|
||||||
|
DPRINTF(ERR_DEBUG," -- Smart: %s\n",
|
||||||
|
db_get_playlist_is_smart(playlistid) ?
|
||||||
|
"Yes" : "No");
|
||||||
mlit=daap_add_empty(mlcl,"mlit");
|
mlit=daap_add_empty(mlcl,"mlit");
|
||||||
if(mlit) {
|
if(mlit) {
|
||||||
g = g && daap_add_int(mlit,"miid",playlistid);
|
g = g && daap_add_int(mlit,"miid",playlistid);
|
||||||
@ -589,6 +595,7 @@ DAAP_BLOCK *daap_response_playlist_items(unsigned int playlist) {
|
|||||||
while((itemid=db_playlist_items_enum(&henum)) != -1) {
|
while((itemid=db_playlist_items_enum(&henum)) != -1) {
|
||||||
mlit=daap_add_empty(mlcl,"mlit");
|
mlit=daap_add_empty(mlcl,"mlit");
|
||||||
if(mlit) {
|
if(mlit) {
|
||||||
|
DPRINTF(ERR_DEBUG,"Adding itemid %d\n",itemid);
|
||||||
g = g && daap_add_char(mlit,"mikd",2);
|
g = g && daap_add_char(mlit,"mikd",2);
|
||||||
g = g && daap_add_int(mlit,"miid",itemid);
|
g = g && daap_add_int(mlit,"miid",itemid);
|
||||||
g = g && daap_add_int(mlit,"mcti",playlist);
|
g = g && daap_add_int(mlit,"mcti",playlist);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user