mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-28 06:17:46 +01:00
Fixing scrapers
This commit is contained in:
parent
cb62f11859
commit
d02a0e808b
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue