Open thatrobotdev opened 3 years ago
Ok, so I looked at the 122nd chapter of room of swords and turns out that the 47th image doesn't exist. (or more accurate: the image link doesn't point to an image file)
So instead of displaying an image it displays the alternative text (as we can see by the alt="image" tag in the html) and the next image is noticeably cut of on the top (were image 47 would have been) here's the link so you can see it for yourself: https://www.webtoons.com/en/sf/room-of-swords/s2-ep-120/viewer?title_no=1261&episode_no=123
So what would be the best way of handling this situation?
Probably implementing a try{}catch{}
to skip unavailable or missing images. The resulting PDF / CBZ etc. would be incomplete but at least the download could continue. Replacing the missing image with a "image not found" image would also be an option but let me know what you think about that.
For a quick fix you can re-download room of swords and set the starting chapter to 123 but I'm thinking of refactoring kea massively to also fix the other bugs you mentioned and that might take a while.
Ok, so I looked at the 122nd chapter of room of swords and turns out that the 47th image doesn't exist.
(or more accurate: the image link doesn't point to an image file)
So instead of displaying an image it displays the alternative text (as we can see by the alt="image" tag in the html)
and the next image is noticeably cut of on the top (were image 47 would have been)
here's the link so you can see it for yourself: https://www.webtoons.com/en/sf/room-of-swords/s2-ep-120/viewer?title_no=1261&episode_no=123
So what would be the best way of handling this situation?
Probably implementing a
try{}catch{}
to skip unavailable or missing images. The resulting PDF / CBZ etc. would be incomplete but at least the download could continue. Replacing the missing image with a "image not found" image would also be an option but let me know what you think about that.For a quick fix you can re-download room of swords and set the starting chapter to 123 but I'm thinking of refactoring kea massively to also fix the other bugs you mentioned and that might take a while.
Ooh, I like your idea of showing an "Image Not Found", which would make it really easy to diagnose errors, then showing some sort of error message at the end of the download or in a log somewhere to let you know about the error.
Describe the bug When attempting to download "Room of Swords", I got a 404 error. After closing it, the program doesn't progress with the download and is stuck on the image it was trying to download. Repeating this comic download for me always gets a 404 error at around this time.
To Reproduce
Kea Version What version of Kea were you using? Kea v1.3.4
Error text: