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:
evazion
2022-03-08 22:25:23 -06:00
parent 1c620f8055
commit 52a2d3418c
3 changed files with 10 additions and 16 deletions

View File

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