wouterdebie / putioarr

put.io to sonarr/radarr proxy
MIT License
23 stars 3 forks source link

Download progress updates in the console / log / sonarr / radarr #5

Open JustSuperHuman opened 8 months ago

JustSuperHuman commented 8 months ago

Wondering if it would be reasonable to add a download percentage to the logs.

[2023-12-25T22:20:01Z INFO ] Active transfers: 1 
                                      SomethingSomethingDownload (55%)

It would be really cool to see it in Sonarr / Radarr also.

I have had a couple times where I can't tell if a file is stuck or is actually downloading.

wouterdebie commented 8 months ago

Yeah I actually implemented this by counting bytes while downloading, but it slowed down the download significantly and I never got back to it and do it properly.

The forwarding piece to sonarr/radarr is a different question though, since right now I just pass on the download percentage from put.io, but in this case there's obviously a second step where files are downloaded to local storage. Sonarr/radarr don't make a difference between stages, but what I could do is regard the put.io download as the first 50% and the download to local as the other 50%. Implementing this is currently not trivial though, since the different stages of the process share state with each other, so I'd have to re-architect a bit.

I'll leave this open for now and might get to something in the next few days.

On Mon, Dec 25, 2023, 17:34 James P. Verde @.***> wrote:

Wondering if it would be reasonable to add a download percentage to the logs.

[2023-12-25T22:20:01Z INFO ] Active transfers: 1 SomethingSomethingDownload (55%)

It would be really cool to see it in Sonarr / Radarr also.

I have had a couple times where I can't tell if a file is stuck or is actually downloading.

— Reply to this email directly, view it on GitHub https://github.com/wouterdebie/putioarr/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKABQFV4PD6CXVSYEIO7LYLH5QHAVCNFSM6AAAAABBCVEQMCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TKOBZGQ4DONQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>