Skip to content

Commit

Permalink
Upload check
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jun 28, 2024
1 parent 0bd082f commit 5a5fedf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3971,14 +3971,10 @@ 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,
)
or torrent.availability < 1
):
if torrent.state_enum in (
TorrentStates.METADATA_DOWNLOAD,
TorrentStates.STALLED_DOWNLOAD,
) or (torrent.availability < 1 and not self.is_uploading_state(torrent)):
if self.allowed_stalled:
self.logger.trace(
"Stalled check: %s [Current:%s][Added:%s][Limit:%s]",
Expand Down

0 comments on commit 5a5fedf

Please sign in to comment.