From 78e85709303494c90e78dc46957ff46a83fa4f10 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 17 Jun 2021 05:18:23 +0200 Subject: Deprecate release doujin flag It's causing more confusion than that it provides any value. --- lib/VNWeb/Releases/Lib.pm | 2 -- lib/VNWeb/Releases/Page.pm | 4 +--- lib/VNWeb/Releases/VNTab.pm | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/VNWeb/Releases') diff --git a/lib/VNWeb/Releases/Lib.pm b/lib/VNWeb/Releases/Lib.pm index e5e46846..6f9bafe8 100644 --- a/lib/VNWeb/Releases/Lib.pm +++ b/lib/VNWeb/Releases/Lib.pm @@ -92,8 +92,6 @@ sub release_row_ { icon_ 'ero_animated', "Ero: $ANIMATED{$r->{ani_ero}}{txt}", "anim$r->{ani_ero}" if $r->{ani_ero}; icon_ 'free', 'Freeware' if $r->{freeware}; icon_ 'nonfree', 'Non-free' if !$r->{freeware}; - icon_ 'doujin', 'Doujin' if !$r->{patch} && $r->{doujin}; - icon_ 'commercial', 'Commercial' if !$r->{patch} && !$r->{doujin}; if($r->{reso_y}) { my $ratio = $r->{reso_x} / $r->{reso_y}; my $type = $ratio == 4/3 ? '4-3' : $ratio == 16/9 ? '16-9' : 'custom'; diff --git a/lib/VNWeb/Releases/Page.pm b/lib/VNWeb/Releases/Page.pm index 49374167..7a83b149 100644 --- a/lib/VNWeb/Releases/Page.pm +++ b/lib/VNWeb/Releases/Page.pm @@ -105,9 +105,7 @@ sub _infotable_ { tr_ sub { td_ 'Publication'; - td_ join ', ', - $r->{freeware} ? 'Freeware' : 'Non-free', - $r->{patch} ? () : ($r->{doujin} ? 'doujin' : 'commercial'); + td_ $r->{freeware} ? 'Freeware' : 'Non-free'; }; tr_ sub { diff --git a/lib/VNWeb/Releases/VNTab.pm b/lib/VNWeb/Releases/VNTab.pm index a35f0d6c..a606827e 100644 --- a/lib/VNWeb/Releases/VNTab.pm +++ b/lib/VNWeb/Releases/VNTab.pm @@ -47,12 +47,12 @@ my @rel_cols = ( }, { # Publication id => 'pub', sort_field => 'publication', - sort_sql => 'r.doujin %s, r.freeware %1$s, r.patch %1$s, r.released %1$s, r.title %1$s', + sort_sql => 'r.freeware %1$s, r.patch %1$s, r.released %1$s, r.title %1$s', column_string => 'Publication', column_width => 70, button_string => 'Publication', default => 1, - draw => sub { txt_ join ', ', $_[0]{freeware} ? 'Freeware' : 'Non-free', $_[0]{patch} ? () : ($_[0]{doujin} ? 'doujin' : 'commercial') }, + draw => sub { txt_ $_[0]{freeware} ? 'Freeware' : 'Non-free' }, }, { # Platforms id => 'pla', button_string => 'Platforms', -- cgit v1.2.3