This commit is contained in:
NikolajDanger
2021-02-08 23:39:41 +01:00
parent 5b69982521
commit 150cb02709

View File

@ -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)