mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-22 03:34:05 -04:00
Merge pull request #586 from chme/lastfm
Fix error logs for non persistent queue items
This commit is contained in:
commit
1b754f141c
10
src/player.c
10
src/player.c
@ -811,11 +811,15 @@ source_check(void)
|
|||||||
i++;
|
i++;
|
||||||
|
|
||||||
id = (int)cur_playing->id;
|
id = (int)cur_playing->id;
|
||||||
worker_execute(playcount_inc_cb, &id, sizeof(int), 5);
|
|
||||||
|
if (id != DB_MEDIA_FILE_NON_PERSISTENT_ID)
|
||||||
|
{
|
||||||
|
worker_execute(playcount_inc_cb, &id, sizeof(int), 5);
|
||||||
#ifdef LASTFM
|
#ifdef LASTFM
|
||||||
worker_execute(scrobble_cb, &id, sizeof(int), 8);
|
worker_execute(scrobble_cb, &id, sizeof(int), 8);
|
||||||
#endif
|
#endif
|
||||||
history_add(cur_playing->id, cur_playing->item_id);
|
history_add(cur_playing->id, cur_playing->item_id);
|
||||||
|
}
|
||||||
|
|
||||||
if (consume)
|
if (consume)
|
||||||
db_queue_delete_byitemid(cur_playing->item_id);
|
db_queue_delete_byitemid(cur_playing->item_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user