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:
evazion
2022-03-30 03:22:02 -05:00
parent 04551b8154
commit a272c19b98
5 changed files with 77 additions and 1 deletions

View File

@@ -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