pixiv: fixup bugs in 1c620f805.
* Fix error when uploading non-ugoira files. * Fix sample image URLs not being rewritten to full images correctly. We have to get the full image URL from the API because given an /img-master/ URL, we don't know what the original file extension is.
This commit is contained in:
@@ -58,10 +58,10 @@ module Downloads
|
||||
|
||||
assert_rewritten(@p0_full_size_image, @medium_page)
|
||||
assert_rewritten(@p0_full_size_image, @manga_page)
|
||||
assert_rewritten(@p1_full_size_image, @manga_big_p1_page)
|
||||
assert_rewritten(@p0_full_size_image, @manga_big_p1_page)
|
||||
assert_downloaded(@p0_file_size, @medium_page)
|
||||
assert_downloaded(@p0_file_size, @manga_page)
|
||||
assert_downloaded(@p1_file_size, @manga_big_p1_page)
|
||||
assert_downloaded(@p0_file_size, @manga_big_p1_page)
|
||||
end
|
||||
|
||||
should "download the full size image instead of the thumbnail" do
|
||||
|
||||
Reference in New Issue
Block a user