qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Add ability to pause/resume entire session

Open glassez opened this issue 1 year ago • 2 comments

  • Replaces current unsafe Start all and Stop all actions with Pause session and Resume session (paused session preserves started/stopped states of torrents when resumed).
  • Adds an option to start session in paused state.

Closes #18993.

001

003

004

002

glassez avatar Apr 25 '24 06:04 glassez

One minor issue which i'm not even sure that it's a bug: Disabling the queue doesn't update the state of queued torrents while session is paused.

thalieht avatar Apr 25 '24 11:04 thalieht

Disabling the queue doesn't update the state of queued torrents while session is paused.

I suppose you mean changing "queued" to "seeding" or "downloading". I tried to fix it, but I don't know if I succeeded, since I haven't had the opportunity to test it yet. Should be fixed now.

glassez avatar Apr 26 '24 05:04 glassez

Am I understanding correctly that, when a user pauses their session, that private trackers will receive no announces saying that their client has stopped their torrents?

This would prevent me from being able to delete their IP from the database, or being able to configure a suitable time out for how long I should keep their data after expecting users to announce again. I also can't keep reasonable statistics.

Or am I misunderstanding?

Roardom avatar May 03 '24 07:05 Roardom

Or am I misunderstanding?

Yes. It works as if you stopped all your torrents. The only difference is that it preserves individual torrent states, so when you resume the session, previously stopped torrents will remain stopped.

glassez avatar May 03 '24 09:05 glassez

Or am I misunderstanding?

Yes. It works as if you stopped all your torrents. The only difference is that it preserves individual torrent states, so when you resume the session, previously stopped torrents will remain stopped.

Perfect, thank you.

Roardom avatar May 03 '24 09:05 Roardom

After state has been paused and resumed. Newly added torrents start in paused state

Dnkhatri avatar May 18 '24 20:05 Dnkhatri

After state has been paused and resumed. Newly added torrents start in paused state

Can't reproduce.

thalieht avatar May 18 '24 20:05 thalieht

After state has been paused and resumed. Newly added torrents start in paused state

Can't reproduce.

I just paused the state then resumed it seemed to work properly then a few hours later I noticed sonarr was adding torrents but they were not downloading so I forgot to mention the torrents were added with sonarr. I will try to reproduce

Dnkhatri avatar May 19 '24 06:05 Dnkhatri

I was able to reproduce this again as newly sonarr added torrents were added in paused state.

Dnkhatri avatar May 19 '24 16:05 Dnkhatri

torrents were added in paused state

What do you mean exactly? (Screenshots and log would be helpful.)

glassez avatar May 19 '24 16:05 glassez

torrents were added in paused state

What do you mean exactly? (Screenshots and log would be helpful.)

The torrents did not start downloading automatically when they were added by sonarr so I had to manually start them. I have about 1000 torrents in my client and I use the sql instead of the fast resume files. I paused about 30 torrents manually then tested the new pause state and resume state to test if the torrents paused manually stayed paused when state was resumed. I have moved back to the original release so can't help

Dnkhatri avatar May 19 '24 19:05 Dnkhatri

Hi guys sorry the problem was on my end I had changed this setting just before I tried it. Though should this not work the other way not to download torrent is enabled then we should get the option if we just want to get the metadata or filecheck.

1 Screenshot from 2024-05-20 19-34-38

Dnkhatri avatar May 20 '24 11:05 Dnkhatri

@Dnkhatri If you "just want to get the metadata or filecheck" you should add torrent and set corresponding "stop condition". If torrent is added as stopped it won't perform any jobs.

glassez avatar May 20 '24 11:05 glassez