Closed orthanc42 closed 1 year ago
What's the point of this?
What's the point of this?
ease strain on floatplane servers a bit and make it so console output has a timestamp prior to waiting. so one can see how long until it cycles again.
[19:44:32 GMT-0500 (Central Daylight Time)] Checking for new videos in 15 minutes...
I can see the use of printing the timestamp. Though I'd like to use something that doesn't have the baggage of the timezone etc attached to it.
Using
date.toLocaleTimeString()
Would work.
As for increasing the delay,. The endpoint that is hit every 5min causes basically 0 load on floatplane, it's only the endpoints being used for downloading that do so increasing the time will have 0 affect.
If increasing the delay did then I would have already done so so you can revert the extra delay.
Oh lol woops I didn't notice how your doing the dates. You can just call toLocaleTimeString directly off a new date object. You also don't need to pass Date.now() into a new date constructor.
But I can sort that out at some point. Thanks for the contribution! Its much appreciated
add timestamp to output at end of run before waiting and change wait time to 15 minutes