Skip to content

Commit

Permalink
Variable type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jun 28, 2024
1 parent 2b63237 commit 4718546
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3971,9 +3971,13 @@ def _process_single_torrent(self, torrent: qbittorrentapi.TorrentDictionary):
maximum_eta = _tracker_max_eta

stalled_ignore = False
if torrent.state_enum in (
TorrentStates.METADATA_DOWNLOAD,
TorrentStates.STALLED_DOWNLOAD,
if (
torrent.state_enum
in (
TorrentStates.METADATA_DOWNLOAD,
TorrentStates.STALLED_DOWNLOAD,
)
or torrent.availability < 1
):
if self.allowed_stalled:
self.logger.trace(
Expand All @@ -3983,8 +3987,10 @@ def _process_single_torrent(self, torrent: qbittorrentapi.TorrentDictionary):
torrent.added_on,
time.time() + timedelta(minutes=self.stalled_delay),
)
if self.stalled_delay > 0 and torrent.added_on >= time.time() + timedelta(
minutes=self.stalled_delay
if (
self.stalled_delay > 0
and torrent.added_on
>= time.time() + timedelta(minutes=self.stalled_delay).seconds
):
stalled_ignore = False
elif "qBitrr-allowed_stalled" not in torrent.tags:
Expand Down

0 comments on commit 4718546

Please sign in to comment.