Add retry mechanism in case of episodes list retrieve failure instead of just failing.

If it can't after a couple of retry (5 by default, can be changed on the command line) it will just ignore it and go to the next anime.
This commit is contained in:
Godzil
2018-06-11 21:16:39 +01:00
parent f3a0d0129d
commit 7d6f762f59
3 changed files with 23 additions and 4 deletions

View File

@@ -20,4 +20,5 @@ interface IConfig {
rebuildcrp?: boolean;
batch?: string;
verbose?: boolean;
retry?: number;
}

View File

@@ -1,4 +1,5 @@
interface IConfigTask {
address: string;
config: IConfigLine;
retry: number;
}