-
Notifications
You must be signed in to change notification settings - Fork 48
Webtoon and error 10054 #459
Comments
Not sure it will help with 10054 and if is it worth to put in Your code but i modified parser.py a little in
I wasn't able to get error code though. With catching exception script repeats connect without break. It's silly modification of course ... |
If you want to stop the script as a whole, you need some flag that you have to check in the main loop (in general, where the methods are called) |
As for the method itself, it only checks the url for redirects. |
No, the reason i don't put raise there is that I don't want to throw exception. Python is still new to me and the internet resources are my teachers in free time. In the case where error will be thrown all time then this modification will make it infinite loop of displaying errors till user will break the run with ctrl+c. I thought about incrementing some variable and break from loop this way but this error occurrs only from time to time only so this is not the issue for me. |
You're right. This project is not the best way to learn python |
I know the feeling being overworked, and leaving weekends for anything but not something like work again :). I may say I am impressed about how You know what to change and the fact You made many changes and it still works correctly. I use it only for webtoons, tried other sites I know but they don't want to cooperate - either it is cloudflare or changes in website code. The fact it works with webtoons is enough for me. |
Seems the place i was looking for:
in manga-py\http\request.py. |
After few adjustments I made in code (so called by me "infinite loop") other error occured. Previous on very critical error manga-py was just threw exception and finished execution. Now it breaks on given chapter and takes for next one. But the temp folder is not cleared from old files so next chapter contains previously downloaded pages - manga-py is not redownloading existing files. And yesterday I have found that even if given chapter is downloaded correctly, manga-py is deleting only number of images what downloaded chapter should contain. In short - if crashed chapter contained 70 images and manga-py interrupted chapter on image 65 (error occurred) all downloaded images will not be deleted and will be put into next chapter without redownloading. |
@bumbaras Regarding your question: Yes, images will not be deleted if an exception was thrown (it would be nice to fix this) // I hope the translator conveyed everything correctly. Sorry my english is really bad |
Infinite loop gave me more but different issues, which only occurred on exception throw. But it still is better now.
I can't agree with this one - i put additional images with proper names to temp folder and:
My english is much worse although i don't use translator for syntax, and rarely used words like to be forgotten. |
Since some time i have started to get error 10054 occassionally (the connection was abruptly closed by remote host). Error like error, manga-py doesn't stop at this and tries again and is able to continue download so one may say it is not issue at all. The closed connection almost always occurred on the end of given chapter, very rarely it occurrs in the middle of chapter. It occurrs usually for each 5 to 8 chapters.
Although it seems there is no problem when closed connection occurred in the middle of chapter because manga-py is able to resume download and archive seems complete, today I have found that manga-py omitts the chapter that should follow right after the closed connection if the error occurred when previous chapter was completed. So if the error occurred when next chapter should started then this chapter will be missing.
Parse chapters. Please, wait
100% (68 of 68) |##############################| Elapsed Time: 0:01:00 Time: 0:01:00
100% (79 of 79) |##############################| Elapsed Time: 0:00:52 ETA: 00:00:00
[ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(10054, 'Istniejące połączenie zostało gwałtownie zamknięte przez zdalnego hosta', None, 10054, None)))]
100% (79 of 79) |##############################| Elapsed Time: 0:01:13 Time: 0:01:13
Because there is no info what chapter is currently under download there is no way to notice that something is missing. I asked about it in feature request some time ago. As in example the error occurred just before next chapter should started (ETA shows 0s) and the progress after error shows the chapter before error. There is one more to download but it didn't start. Workaround for now is to just repeat download manually.
The text was updated successfully, but these errors were encountered: