summaryrefslogtreecommitdiff
path: root/lib/VNDB/Func.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-13 16:13:24 +0200
committerYorhel <git@yorhel.nl>2019-09-13 16:13:26 +0200
commited70099d2cea6f33b3b9951f6d05e207f652bd2a (patch)
treee7404e5d5c9c7f48eb410623b063211f00df1c90 /lib/VNDB/Func.pm
parent29623a73b19c95381a0796858456b79a7ef34a1c (diff)
Remove the VN length examples (+ some cruft I forgot earlier)
The original intention was that this list of common VNs most people have played would be used for comparison to determine the length. But nowadays there barely any such "well-read" VNs and even then it hasn't been a very reliable approach anyway. Let's just stick with the time indication.
Diffstat (limited to 'lib/VNDB/Func.pm')
-rw-r--r--lib/VNDB/Func.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm
index 9827a584..11e3dfee 100644
--- a/lib/VNDB/Func.pm
+++ b/lib/VNDB/Func.pm
@@ -203,13 +203,11 @@ sub fmtmedia {
$med->{ $med->{qty} && $qty > 1 ? 'plural' : 'txt' };
}
-# Formats a VN length (xtra = 1 for time indication, 2 for examples)
+# Formats a VN length (xtra = time indication)
sub fmtvnlen {
my($len, $xtra) = @_;
$len = $VN_LENGTH{$len};
- $len->{txt}.
- ($xtra && $xtra == 1 && $len->{time} ? " ($len->{time})" : '').
- ($xtra && $xtra == 2 && $len->{example} ? " ($len->{example})" : '');
+ $len->{txt}.($xtra && $len->{time} ? " ($len->{time})" : '');
}
# Formats a UNIX timestamp as a '<number> <unit> ago' string