🐛
This commit is contained in:
@@ -3,7 +3,7 @@ from funcs import logThis
|
|||||||
|
|
||||||
radarrURL = "http://localhost:7878/api/v3/"
|
radarrURL = "http://localhost:7878/api/v3/"
|
||||||
sonarrURL = "http://localhost:8989/api/"
|
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/"
|
moviePath = "/media/plex/Server/movies/"
|
||||||
showPath = "/media/plex/Server/Shows/"
|
showPath = "/media/plex/Server/Shows/"
|
||||||
|
|
||||||
@@ -180,6 +180,9 @@ class BedreNetflix():
|
|||||||
torrentName = torrentName[:26]+"...."
|
torrentName = torrentName[:26]+"...."
|
||||||
else:
|
else:
|
||||||
torrentName = torrentName[:27]+"..."
|
torrentName = torrentName[:27]+"..."
|
||||||
|
while len(torrentName) < 30:
|
||||||
|
torrentName += " "
|
||||||
|
|
||||||
if torrent["size"] == 0:
|
if torrent["size"] == 0:
|
||||||
downloadedRatio = 0
|
downloadedRatio = 0
|
||||||
elif torrent["amount_left"] == 0:
|
elif torrent["amount_left"] == 0:
|
||||||
@@ -212,6 +215,9 @@ class BedreNetflix():
|
|||||||
|
|
||||||
torrentInfo = torrentName+" "+progressBar+" (Eta: "+eta+")"
|
torrentInfo = torrentName+" "+progressBar+" (Eta: "+eta+")"
|
||||||
|
|
||||||
|
if torrent["state"] == "stalledDL":
|
||||||
|
torrentInfo += " (Stalled)"
|
||||||
|
|
||||||
if not (downloadedRatio == 1 and torrent["last_activity"] < time.time()-7200):
|
if not (downloadedRatio == 1 and torrent["last_activity"] < time.time()-7200):
|
||||||
message.append(torrentInfo)
|
message.append(torrentInfo)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user