Skip to content

Commit

Permalink
Fixed stalled re-search type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jul 8, 2024
1 parent 2f8af3c commit 7c0dbfb
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3989,15 +3989,23 @@ def _stalled_check(self, torrent: qbittorrentapi.TorrentDictionary, time_now: fl
stalled_ignore = True
if not self.allowed_stalled:
return stalled_ignore
self.logger.trace(
"Stalled check: %s [Current:%s][Added:%s][Limit:%s]",
torrent.name,
datetime.fromtimestamp(time_now),
datetime.fromtimestamp(torrent.added_on),
datetime.fromtimestamp(
torrent.added_on + timedelta(minutes=self.stalled_delay).seconds
),
)
if self.stalled_delay == 0:
self.logger.trace(
"Stalled check: %s [Current:%s][Added:%s][Limit:No Limit]",
torrent.name,
datetime.fromtimestamp(time_now),
datetime.fromtimestamp(torrent.added_on),
)
else:
self.logger.trace(
"Stalled check: %s [Current:%s][Added:%s][Limit:%s]",
torrent.name,
datetime.fromtimestamp(time_now),
datetime.fromtimestamp(torrent.added_on),
datetime.fromtimestamp(
torrent.added_on + timedelta(minutes=self.stalled_delay).seconds
),
)
if (
(
torrent.state_enum
Expand Down Expand Up @@ -4042,7 +4050,7 @@ def _stalled_check(self, torrent: qbittorrentapi.TorrentDictionary, time_now: fl
self._process_failed_individual(
hash_=hash_,
entry=entry,
skip_blacklist=set[str],
skip_blacklist=set(),
remove_from_client=False,
)
else:
Expand Down

0 comments on commit 7c0dbfb

Please sign in to comment.