Better handling of language wildcards
English (langcode `en`) no longer needs to be specified alongside the wildcard; `generate.pl` now handles wildcard langcodes properly and will add both the plain URL for English and the wildcard URL to match every other language
This commit is contained in:
parent
635be25f94
commit
4d5e0c7883
|
@ -13,9 +13,12 @@ my @list;
|
|||
foreach my $wiki ( keys %{$data} ) {
|
||||
foreach my $lang ( @{%{$data}{$wiki}} ) {
|
||||
if ($lang eq 'en') {
|
||||
push(@list, "*://" . $wiki . ".fandom.com/wiki/*\n")
|
||||
push @list, "*://" . $wiki . ".fandom.com/wiki/*\n"
|
||||
} elsif ($lang eq '*') {
|
||||
push @list, "*://" . $wiki . ".fandom.com/wiki/*\n";
|
||||
push @list, "*://" . $wiki . ".fandom.com/*/wiki/*\n"
|
||||
} else {
|
||||
push(@list, "*://" . $wiki . ".fandom.com/" . $lang . "/wiki/*\n")
|
||||
push @list, "*://" . $wiki . ".fandom.com/" . $lang . "/wiki/*\n"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
12
list.yml
12
list.yml
|
@ -13,9 +13,9 @@ angrybirds:
|
|||
animalcrossingpocketcamp:
|
||||
[ en ]
|
||||
anime:
|
||||
[ en, '*' ]
|
||||
[ '*' ]
|
||||
animanga:
|
||||
[ en, '*' ]
|
||||
[ '*' ]
|
||||
ark:
|
||||
[ de, en, es, hr, it, ja, ko, nl, pl, pt,
|
||||
ru, th, zh ]
|
||||
|
@ -40,13 +40,13 @@ earthbound:
|
|||
elderscrolls:
|
||||
[ ja ]
|
||||
emulation:
|
||||
[ en, '*']
|
||||
[ '*']
|
||||
fireemblem:
|
||||
[ en ]
|
||||
football:
|
||||
[ en ]
|
||||
furry:
|
||||
[ en, '*' ]
|
||||
[ '*' ]
|
||||
genshin-impact:
|
||||
[ en, ja, zh ]
|
||||
gta:
|
||||
|
@ -88,7 +88,7 @@ nonbinary:
|
|||
oldschoolrunescape:
|
||||
[ en ]
|
||||
otaku:
|
||||
[ en, '*' ]
|
||||
[ '*' ]
|
||||
pagan:
|
||||
[ en ]
|
||||
pikmin:
|
||||
|
@ -98,7 +98,7 @@ podcasts:
|
|||
pokemon:
|
||||
[ de, en, es, fr, it, ja, ko, zh ]
|
||||
religion:
|
||||
[ en, '*' ]
|
||||
[ '*' ]
|
||||
runescape:
|
||||
[ en ]
|
||||
sidem:
|
||||
|
|
Loading…
Reference in New Issue