summaryrefslogtreecommitdiff
path: root/lib/Multi/API.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-12 13:25:32 +0200
committerYorhel <git@yorhel.nl>2019-09-12 13:27:13 +0200
commit752bc1724968a1f15b17ba9e607f2163997b4efa (patch)
tree550fbd88132511bebf7124adb97172e8e40e6c34 /lib/Multi/API.pm
parent5d45892f95e83fc3a5185dad991bf61d9db69197 (diff)
VNDB::Types: Convert medium & resolution
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r--lib/Multi/API.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm
index 73d0425c..a93cd3ff 100644
--- a/lib/Multi/API.pm
+++ b/lib/Multi/API.pm
@@ -606,7 +606,7 @@ my %GET_RELEASE = (
$_[0]{minage} = $_[0]{minage} < 0 ? undef : $_[0]{minage}*1;
$_[0]{gtin} ||= undef;
$_[0]{catalog} ||= undef;
- $_[0]{resolution} = $_[0]{resolution} eq 'unknown' ? undef : $VNDB::S{resolutions}{ $_[0]{resolution} }[0];
+ $_[0]{resolution} = $_[0]{resolution} eq 'unknown' ? undef : $RESOLUTION{ $_[0]{resolution} }{txt};
$_[0]{voiced} = $_[0]{voiced} ? $_[0]{voiced}*1 : undef;
$_[0]{animation} = [
$_[0]{ani_story} ? $_[0]{ani_story}*1 : undef,
@@ -629,7 +629,7 @@ my %GET_RELEASE = (
}
for (@$r) {
delete $_->{id};
- $_->{qty} = $VNDB::S{media}{$_->{medium}}[0] ? $_->{qty}*1 : undef;
+ $_->{qty} = $MEDIUM{$_->{medium}}{qty} ? $_->{qty}*1 : undef;
}
} ],
]