Skip to content

Commit

Permalink
Free space logs adjustement
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jun 29, 2024
1 parent 110fe38 commit 2ade7cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -5068,7 +5068,9 @@ def _process_single_torrent(self, torrent):
if self.is_downloading_state(torrent):
free_space_test = self.current_free_space
free_space_test -= torrent["amount_left"]
self.logger.trace("Resulting free space: %s", free_space_test)
self.logger.trace(
"Resulting free space: %s -> %s", self.current_free_space, free_space_test
)
if (
torrent.state_enum != TorrentStates.PAUSED_DOWNLOAD
and self.current_free_space < torrent["amount_left"]
Expand All @@ -5082,7 +5084,9 @@ def _process_single_torrent(self, torrent):
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)
self.logger.trace(
"Can download: Free space %s -> %s", self.current_free_space, free_space_test
)
torrent.remove_tags(tags=["qBitrr-free_space_paused"])
elif not self.is_downloading_state(torrent) and "qBitrr-free_space_paused" in torrent.tags:
self.logger.trace(
Expand Down

0 comments on commit 2ade7cb

Please sign in to comment.