From 150cb02709180b2b6983645b83f0ac7b8410c84b Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Mon, 8 Feb 2021 23:39:41 +0100 Subject: [PATCH] :bug: --- funcs/other/bedreNetflix.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/funcs/other/bedreNetflix.py b/funcs/other/bedreNetflix.py index f0dc6e9..cb135b5 100644 --- a/funcs/other/bedreNetflix.py +++ b/funcs/other/bedreNetflix.py @@ -3,7 +3,7 @@ from funcs import logThis radarrURL = "http://localhost:7878/api/v3/" sonarrURL = "http://localhost:8989/api/" -qbittorrentURL = "http://localhost:1340/api/v2/" +qbittorrentURL = "http://192.168.0.40:1340/api/v2/" moviePath = "/media/plex/Server/movies/" showPath = "/media/plex/Server/Shows/" @@ -180,6 +180,9 @@ class BedreNetflix(): torrentName = torrentName[:26]+"...." else: torrentName = torrentName[:27]+"..." + while len(torrentName) < 30: + torrentName += " " + if torrent["size"] == 0: downloadedRatio = 0 elif torrent["amount_left"] == 0: @@ -212,6 +215,9 @@ class BedreNetflix(): torrentInfo = torrentName+" "+progressBar+" (Eta: "+eta+")" + if torrent["state"] == "stalledDL": + torrentInfo += " (Stalled)" + if not (downloadedRatio == 1 and torrent["last_activity"] < time.time()-7200): message.append(torrentInfo)