From 5a5fedfe3b754ba78bf2091db0e8192e651ed741 Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 28 Jun 2024 12:06:35 +0200 Subject: [PATCH] Upload check --- qBitrr/arss.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index cda709d1..c9e3e7ce 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -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]",