diff --git a/src/db.h b/src/db.h index b052a939..1d68cada 100644 --- a/src/db.h +++ b/src/db.h @@ -150,8 +150,6 @@ enum user_mark { USER_MARK_REVIEW = 4 }; -#define DB_FILES_USERMARK_MAX UINT_MAX - /* Note that fields marked as integers in the metadata map in filescanner_ffmpeg must be uint32_t here */ struct media_file_info { diff --git a/src/httpd_jsonapi.c b/src/httpd_jsonapi.c index 4ee6a08e..42c44dd5 100644 --- a/src/httpd_jsonapi.c +++ b/src/httpd_jsonapi.c @@ -3351,10 +3351,7 @@ jsonapi_reply_library_tracks_put_byid(struct httpd_request *hreq) if (ret < 0) return HTTP_BADREQUEST; - if (uval >= 0 && uval <= DB_FILES_USERMARK_MAX) - ret = db_file_usermark_update_byid(track_id, uval); - else - DPRINTF(E_WARN, L_WEB, "Ignoring invalid usermark value '%u' for track '%d'.\n", uval, track_id); + ret = db_file_usermark_update_byid(track_id, uval); if (ret < 0) return HTTP_INTERNAL;