Inrixia / Floatplane-Downloader

Project for automatically organizing and downloading Floatplane videos for plex.
https://monitor.spookelton.net/public-dashboards/db0aec66747b4950b01b128916eb737e
GNU Affero General Public License v3.0
157 stars 41 forks source link

time + waittime #161

Closed orthanc42 closed 1 year ago

orthanc42 commented 1 year ago

add timestamp to output at end of run before waiting and change wait time to 15 minutes

Inrixia commented 1 year ago

What's the point of this?

orthanc42 commented 1 year ago

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...

Inrixia commented 1 year ago

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.

Inrixia commented 1 year ago

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.

Inrixia commented 1 year ago

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