diff options
author | Yorhel <git@yorhel.nl> | 2019-09-12 12:52:08 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-12 12:52:08 +0200 |
commit | 5d45892f95e83fc3a5185dad991bf61d9db69197 (patch) | |
tree | 5e6701fd382522da2386b440a93dd4b80bbf80cf /lib/Multi/API.pm | |
parent | 5a62f120bad71b81068fd1d50035effc0fda688c (diff) |
VNDB::Types: Convert age_rating and release_type
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 fdde0e8c..73d0425c 100644 --- a/lib/Multi/API.pm +++ b/lib/Multi/API.pm @@ -697,7 +697,7 @@ my %GET_RELEASE = ( doujin => [ [ bool => 'r.doujin = :value:', {'=',1} ] ], type => [ [ str => 'r.type :op: :value:', {qw|= = != <>|}, - process => sub { !grep($_ eq $_[0], @{$VNDB::S{release_types}}) ? \'No such release type' : $_[0] } ], + process => sub { !$RELEASE_TYPE{$_[0]} ? \'No such release type' : $_[0] } ], ], gtin => [ [ 'int' => 'r.gtin :op: :value:', {qw|= = != <>|}, process => sub { length($_[0]) > 14 ? \'Too long GTIN code' : $_[0] } ], |