Fixing links to allow extra params

This commit is contained in:
Chaska 2024-05-02 00:05:43 -05:00
parent f986bbaa88
commit cb62f11859
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
defmodule Philomena.Scrapers.Derpibooru do
@url_regex ~r|\A(https\:\/\/derpibooru\.org\/images\/([0-9]+))\?*.+|
@url_regex ~r/\A(https\:\/\/derpibooru\.org\/images\/([0-9]+))|\?*.+/
@spec can_handle?(URI.t(), String.t()) :: true | false
def can_handle?(_uri, url) do

View file

@ -1,5 +1,5 @@
defmodule Philomena.Scrapers.E621 do
@url_regex ~r|\A(https\:\/\/e621\.net\/posts\/([0-9]+))\?*.+|
@url_regex ~r/\A(https\:\/\/e621\.net\/posts\/([0-9]+))|\?*.+/
@spec can_handle?(URI.t(), String.t()) :: true | false
def can_handle?(_uri, url) do

View file

@ -1,5 +1,5 @@
defmodule Philomena.Scrapers.Furbooru do
@url_regex ~r|\A(https\:\/\/furbooru\.org\/images\/([0-9]+))\?*.+|
@url_regex ~r/\A(https\:\/\/furbooru\.org\/images\/([0-9]+))|\?*.+/
@spec can_handle?(URI.t(), String.t()) :: true | false
def can_handle?(_uri, url) do