This commit is contained in:
NikolajDanger
2021-02-01 15:17:36 +01:00
parent 945c66e849
commit b4fd9465f5

View File

@@ -212,7 +212,7 @@ class BedreNetflix():
torrentInfo = torrentName+" "+progressBar+" (Eta: "+eta+")" torrentInfo = torrentName+" "+progressBar+" (Eta: "+eta+")"
if not (downloadedRatio == 1 and torrent["added_on"] < time.time()-86400): if not (downloadedRatio == 1 and torrent["last_activity"] < time.time()-7200):
message.append(torrentInfo) message.append(torrentInfo)
if downloadedRatio < 1: allDownloaded = False if downloadedRatio < 1: allDownloaded = False
@@ -224,6 +224,7 @@ class BedreNetflix():
async def downloading(self,ctx): async def downloading(self,ctx):
messageText, allDownloaded = await self.genDownloadList() messageText, allDownloaded = await self.genDownloadList()
if messageText.startswith("```"):
updatesLeft = 20 updatesLeft = 20
messageText = messageText[:-3]+"\nThis message will update once a minute for "+str(updatesLeft)+" more minutes\n```" messageText = messageText[:-3]+"\nThis message will update once a minute for "+str(updatesLeft)+" more minutes\n```"
@@ -246,4 +247,5 @@ class BedreNetflix():
logThis("The message updated 20 times") logThis("The message updated 20 times")
await oldMessage.edit(content = messageText) await oldMessage.edit(content = messageText)
else:
await ctx.send(messageText)