Skip to content

Commit

Permalink
Free space logic update
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 17, 2024
1 parent ed372d4 commit 4a332c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def __init__(
self.search_api_command = "MissingEpisodeSearch"

self.manager.qbit_manager.client.torrents_create_tags(
["qBitrr-allowed_seeding", "qBitrr-ignored"]
["qBitrr-allowed_seeding", "qBitrr-ignored", "qBitrr-free_space_paused"]
)
self.search_setup_completed = False
self.model_file: EpisodeFilesModel | MoviesFilesModel = None
Expand Down Expand Up @@ -3605,7 +3605,7 @@ def _should_leave_alone(
if self.is_downloading_state(torrent) and self.min_free_space != "-1":
self.current_free_space -= torrent["amount_left"]
self.logger.trace("Current free space: %s", self.current_free_space)
if self.current_free_space <= parse_size(self.min_free_space):
if self.current_free_space < torrent["amount_left"]:
torrent.add_tags(tags=["qBitrr-free_space_paused"])
if (
torrent.state_enum == TorrentStates.PAUSED_DOWNLOAD
Expand Down

0 comments on commit 4a332c2

Please sign in to comment.