Skip to content

Commit

Permalink
Free space pause logic update
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 17, 2024
1 parent 7a8e29e commit 1c6d556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3819,6 +3819,8 @@ def _process_single_torrent(self, torrent: qbittorrentapi.TorrentDictionary):
_tracker_max_eta,
)
maximum_eta = _tracker_max_eta
if "qBitrr-free_space_paused" in torrent.tags:
self._process_single_torrent_pause_disk_space(torrent)
if self.custom_format_unmet_search and self.custom_format_unmet_check(torrent):
self._process_single_torrent_delete_cfunmet(torrent)
elif remove_torrent and not leave_alone and torrent.amount_left == 0:
Expand Down Expand Up @@ -3938,7 +3940,7 @@ def _process_single_torrent(self, torrent: qbittorrentapi.TorrentDictionary):
self._process_single_completed_paused_torrent(torrent, leave_alone)
else:
self._process_single_torrent_unprocessed(torrent)
if "qBitrr-free_space_paused" in torrent.tags and torrent.hash not in self.delete:
if "qBitrr-free_space_paused" in torrent.tags:
self._process_single_torrent_pause_disk_space(torrent)

def custom_format_unmet_check(self, torrent: qbittorrentapi.TorrentDictionary) -> bool:
Expand Down

0 comments on commit 1c6d556

Please sign in to comment.