mirror of
https://github.com/owntone/owntone-server.git
synced 2025-12-01 13:52:37 -05:00
[json_api] Method for setting skip_count and for setting play_count directly
This commit is contained in:
committed by
Alain Nussbaumer
parent
66d52d06ab
commit
9a513e41c7
@@ -692,6 +692,13 @@ item_attrib_save(void *arg, int *retval)
|
||||
mfi->play_count = param->value;
|
||||
break;
|
||||
|
||||
case LIBRARY_ATTRIB_SKIP_COUNT:
|
||||
if (param->value < 0)
|
||||
goto error;
|
||||
|
||||
mfi->skip_count = param->value;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user