sources: factor out Source::URL::Fanbox.
Also fix it so that we grab the full image for cover URLs like this: * Sample: https://pixiv.pximg.net/c/1620x580_90_a2_g5/fanbox/public/images/creator/1566167/cover/QqxYtuWdy4XWQx1ZLIqr4wvA.jpeg * Full: https://pixiv.pximg.net/fanbox/public/images/creator/1566167/cover/QqxYtuWdy4XWQx1ZLIqr4wvA.jpeg
This commit is contained in:
@@ -163,7 +163,7 @@ class ArtistURLTest < ActiveSupport::TestCase
|
||||
should "normalize pixiv fanbox account urls" do
|
||||
url = FactoryBot.create(:artist_url, :url => "http://www.pixiv.net/fanbox/creator/3113804")
|
||||
assert_equal("http://www.pixiv.net/fanbox/creator/3113804", url.url)
|
||||
assert_equal("http://www.pixiv.net/fanbox/creator/3113804/", url.normalized_url)
|
||||
assert_equal("http://drw24olf.fanbox.cc/", url.normalized_url)
|
||||
end
|
||||
|
||||
should "normalize pixiv.net/user/123 urls" do
|
||||
|
||||
Reference in New Issue
Block a user