diff options
author | Yorhel <git@yorhel.nl> | 2020-06-15 19:00:39 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-06-15 19:00:41 +0200 |
commit | 7f02fd77fd71022712407c78816cc41e75b2fbc0 (patch) | |
tree | 4cfe76fad2d9daedf3dbd530e1aebbfc88d53e05 /util/jsgen.pl | |
parent | 1febd87dd16439203ee0de1f1adc6e9be75860e9 (diff) |
Releases: Allow custom resolutions to be entered
The resolution field now works much like the engine field.
Diffstat (limited to 'util/jsgen.pl')
-rwxr-xr-x | util/jsgen.pl | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl index ff5868d5..84a5c8f1 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -14,24 +14,6 @@ use VNDB::Config; use VNDB::Types; -# screen resolution information, suitable for usage in filFSelect() -sub resolutions { - my $cat = ''; - my @r; - my $push = \@r; - for my $i (keys %RESOLUTION) { - my $r = $RESOLUTION{$i}; - if($cat ne $r->{cat}) { - push @r, [$r->{cat}]; - $cat = $r->{cat}; - $push = $r[$#r]; - } - push @$push, [$i, $r->{txt}]; - } - \@r -} - - sub vars { my %vars = ( rlist_status => [ map [ $_, $RLIST_STATUS{$_} ], keys %RLIST_STATUS ], @@ -49,7 +31,6 @@ sub vars { genders => [ map [ $_, $GENDER{$_} ], keys %GENDER ], credit_type => [ map [ $_, $CREDIT_TYPE{$_} ], keys %CREDIT_TYPE ], cup_size => [ grep $_, keys %CUP_SIZE ], - resolutions => scalar resolutions(), ); JSON::XS->new->encode(\%vars); } |