Open rickmiron opened 4 months ago
Isn't 23 retries enough? Are there cases where more retries are needed?
I don't want to increase it, I want to decrease it to 5
When would you need such a feature?
When this happens:
error 410
html: None
error 523 https://i11.bunkr.ru/custom_1_360_62b46f9fd011e-hvSBPwue.jpg
socket.gaierror: [Errno 11001] getaddrinfo failed https://ahmwoge.hsfqhkdiywam.hath.network:2333/h/9e3c701b8908626ab47406d3e9d74870a74f53b6-406588-1280-1707-jpg/keystamp=1647740100-2460a5b590;fileindex=101447314;xres=1280/Ankha_21.jpg
Exception: HTML: Inactivity Timeout https://i8.bunkr.ru/F0PuwRXWYAE_tYB-EojnWVIO.jpg
You can specify the maximum number of retries like this:
class Video(utils.File):
type = 'youtube'
max_try = 5
Alternatively, you can use legacy methods:
class Video:
max_try = 5
def __init__(self, referer, url):
self.url = utils.LazyUrl(referer, lambda _: url, self)
Try this: https://github.com/KurtBestor/Hitomi-Downloader/releases/tag/Technical-Preview
When a file fails to download, how can I set the number of retries and timeout? since 23 times I see it excessive