diff options
author | Yorhel <git@yorhel.nl> | 2021-03-04 12:00:13 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-03-04 12:06:17 +0100 |
commit | 7c9e24b57a5eaa1b026833ca11cba7a451cf8556 (patch) | |
tree | 0a4ace42210152f55da88424b75c7fa688120f61 /lib/Multi/API.pm | |
parent | 5d54a844aba404e16280dcbd1ec3dffc9be4dfe1 (diff) |
Releases: Store unknown minage as NULL + fix default for new entries
Fixes https://vndb.org/t950.905, which also reminded me that I can now
finally store unknown as NULL rather than -1. The v2rw rewrite was
preventing me from changing that earlier, handling NULLs was more
annoying in the old v2 code.
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r-- | lib/Multi/API.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm index 405c68c3..e5a00530 100644 --- a/lib/Multi/API.pm +++ b/lib/Multi/API.pm @@ -628,7 +628,7 @@ my %GET_RELEASE = ( proc => sub { $_[0]{website} ||= undef; $_[0]{notes} ||= undef; - $_[0]{minage} = $_[0]{minage} < 0 ? undef : $_[0]{minage}*1; + $_[0]{minage} *= 1 if defined $_[0]{minage}; $_[0]{gtin} ||= undef; $_[0]{catalog} ||= undef; $_[0]{resolution} = resolution $_[0]; |