[json_api] Method for setting skip_count and for setting play_count directly

This commit is contained in:
ejurgensen
2024-10-16 16:42:24 +02:00
committed by Alain Nussbaumer
parent 66d52d06ab
commit 9a513e41c7
4 changed files with 29 additions and 3 deletions

View File

@@ -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;
}