-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement: Optionally use Data-Saver #29
Conversation
Sorry, didn't get a notification for this. Just tested it out and it doesn't seem to be fully working. Going based on my example in #6, running the same command with any
This seems to only happen sometimes because running the above command with |
That is... quite the interesting bug... What seems to be happening here is that MangaDex, like our code, also has trouble decoding the 6th image in that chapter. As such, they simply leave it out of the data-saver array, which then causes this errror. This can be seen at the following URL. In any case, this definitely seems like a bug on the MangaDex side. I'll try to report it to them and see what happens. |
A MangaDex developer confirmed that this is a bug on their side and fixed it for this specific case. I've also added some code that ensures we get a proper error for any chapters where this is the case. |
Seems to be working well now. I also tried out the example in #24 and the fallback option worked great as a workaround for a bad image. This feature seems ready to merge. One thing though, I think that there should still be an issue left open for broken images. Right now, the default behavior of kojirou is to still error out when a broke image is found, so until the default behavior can handle those cases there should be an issue open for it. If |
Yeah, I get what you mean. I'll leave at least one "broken images" issue open, or create a new one that summarizes the problem. However, I am not comfortable making |
This PR implements an option to enable the data-saver functionality, as well as the possibility to fall back on data-saver if downloading the normal images fails. This also represents a fix for issues #6 and #24.
@Colin1224 I would appreciate if you could test these changes and provide feedback. Also, I tried using the GitHub API to create a PR based on your issue, which seems to in the process have replaced the original issue. Sorry about that.