Skip to content

Commit

Permalink
Testing allowed download tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 4, 2024
1 parent 54f65ed commit 9892408
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ def __init__(
else:
self.search_api_command = "MissingEpisodeSearch"

self.manager.qbit_manager.client.torrents_create_tags(
["qBitrr-allowed_seeding", "qBitrr-allowed_download"]
)
self.search_setup_completed = False
self.model_arr_file: EpisodesModel | MoviesModel | MoviesModelv5 = None
self.model_arr_series_file: SeriesModel | SeriesModelv4 = None
Expand Down Expand Up @@ -3236,6 +3239,8 @@ def _should_leave_alone(
torrent.add_tags(tags=["qBitrr-allowed_seeding"])
elif not return_value and "qBitrr-allowed_seeding" in torrent.tags:
torrent.remove_tags(tags=["qBitrr-allowed_seeding"])
elif "qBitrr-allowed_download" not in torrent.tags:
return_value = True
return (
return_value,
data_settings.get("max_eta", self.maximum_eta),
Expand Down

0 comments on commit 9892408

Please sign in to comment.