sources: fix fandom.com page urls.
Fix it so that sources like this: * https://vignette.wikia.nocookie.net/valkyriecrusade/images/c/c5/Crimson_Hatsune_H.png/revision/latest?cb=20180702031954 link to this: * https://valkyriecrusade.fandom.com/?file=Crimson_Hatsune_H.png instead of this * https://valkyriecrusade.fandom.com/wiki/File:Crimson_Hatsune_H.png The `/wiki/File:$name` URL redirects to whatever wiki page contains the image instead of showing the file itself.
This commit is contained in:
@@ -84,7 +84,7 @@ module Sources
|
||||
|
||||
should "normalize wikia links" do
|
||||
source = "https://vignette.wikia.nocookie.net/valkyriecrusade/images/c/c5/Crimson_Hatsune_H.png/revision/latest?cb=20180702031954"
|
||||
assert_equal("https://valkyriecrusade.fandom.com/wiki/File:Crimson_Hatsune_H.png", Source::URL.page_url(source))
|
||||
assert_equal("https://valkyriecrusade.fandom.com/?file=Crimson_Hatsune_H.png", Source::URL.page_url(source))
|
||||
end
|
||||
|
||||
should "normalize e-shuushuu links" do
|
||||
|
||||
Reference in New Issue
Block a user