Skip to content

Commit

Permalink
[patch] Urgent bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed May 1, 2024
1 parent 7296a64 commit 5bbf7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qBitrr/arss.py
Expand Up @@ -4902,15 +4902,15 @@ def _process_single_torrent(self, torrent):
self.logger.trace("Pause download: Free space %s", self.current_free_space)
torrent.add_tags(tags=["qBitrr-free_space_paused"])
torrent.remove_tags(tags=["qBitrr-allowed_seeding"])
self._process_single_torrent_pause_disk_space(torrent.hash)
self._process_single_torrent_pause_disk_space(torrent)
elif (
torrent.state_enum == TorrentStates.PAUSED_DOWNLOAD
and self.current_free_space > torrent["amount_left"]
):
self.current_free_space = free_space_test
self.logger.trace("Can download: Free space %s", self.current_free_space)
torrent.remove_tags(tags=["qBitrr-free_space_paused"])
self._process_single_torrent_resume_disk_space(torrent.hash)
self._process_single_torrent_resume_disk_space(torrent)
elif self.is_complete_state(torrent) and "qBitrr-free_space_paused" in torrent.tags:
self.logger.trace(
"Removing tag[%s] for completed torrent[%s]: Free space %s",
Expand Down

0 comments on commit 5bbf7f9

Please sign in to comment.