diff options
author | Yorhel <git@yorhel.nl> | 2019-09-12 13:25:32 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-12 13:27:13 +0200 |
commit | 752bc1724968a1f15b17ba9e607f2163997b4efa (patch) | |
tree | 550fbd88132511bebf7124adb97172e8e40e6c34 /lib/Multi/API.pm | |
parent | 5d45892f95e83fc3a5185dad991bf61d9db69197 (diff) |
VNDB::Types: Convert medium & resolution
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r-- | lib/Multi/API.pm | 4 |
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; } } ], ] |