- add limit ratio

- add limit ratio and super seed parameter to upload
This commit is contained in:
2026-03-31 10:09:17 +07:00
parent 4578ea3474
commit c899eb5ca6
3 changed files with 38 additions and 6 deletions

View File

@@ -737,7 +737,7 @@ class USK(ScheduleBot):
# await torrentupload.qbit.stop_torrent(search_string=torrent_detail["qbit_name"])
################################################
upload_status: dict[str,list] = await torrentupload.upload_torrent(upload_entry,qbit_category="SeFree-Automate")
upload_status: dict[str,list] = await torrentupload.upload_torrent(upload_entry,qbit_category="SeFree-Automate",super_seed=False,seedingTimeLimit=10080)
self.console.debug("Upload status:", upload_status)
if not (any(item['status'] is False for item in upload_status['bearbit']) or any(item['status'] is False for item in upload_status['torrentdd'])) and \
len(upload_status['bearbit'] ) > 0 and len(upload_status['torrentdd']) >0:
@@ -765,7 +765,7 @@ class USK(ScheduleBot):
embed.add_field(name="TorrentDD", value=dd_text, inline=False)
embed.set_footer(text="Thank you for visiting!")
# self.console.debug("Upload status:", upload_status)
self.console.log(status.message,is_discord={"channel": self.channel,"embed": embed,"web_hook_urls":os.getenv['torrent_update_webhook'].split(",")})
self.console.log(status.message,is_discord={"channel": self.channel,"embed": embed,"web_hook_urls":os.getenv('torrent_update_webhook').split(",")})
qbit_name=next(
(item["name"]