Subject: Option to fail if over quota
From: CGar .
Date: Tue, 31 Mar 2020 19:19:39 +0000
Hi, I'm looking to create a script that will reset my IP when mega returns 509 over quota.
However it is quite difficult with the way megadl is setup. It runs for a very long time before it fails.
Is there an option to have it fail much faster?
That way I can catch that with the return code and get a new IP and start again.
I suck at C but have managed to reduce the time by editing the line:
const gint64 retry_timeout = 1000ll * 1000 * 60 * 640;
But I'm not sure if that is the most appropriate way.