Fix #5078: Pixiv booth upload broken.
Allow image URLs from https://booth.pximg.net to be uploaded. Fix bug where Booth.pm URLs were incorrectly caught by the Pixiv extractor.
This commit is contained in:
@@ -5,7 +5,7 @@ module Source
|
||||
attr_reader :work_id, :page, :username, :user_id
|
||||
|
||||
def self.match?(url)
|
||||
return false if Source::URL::Fanbox.match?(url) || Source::URL::PixivSketch.match?(url)
|
||||
return false if Source::URL::Fanbox.match?(url) || Source::URL::PixivSketch.match?(url) || Source::URL::Booth.match?(url)
|
||||
|
||||
url.domain.in?(%w[pximg.net pixiv.net pixiv.me pixiv.cc]) || url.host == "tc-pximg01.techorus-cdn.com"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user