This commit is contained in:
2026-05-19 20:06:12 +06:00
parent e7fd6fe0cc
commit 831500e9bd
34 changed files with 24 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import asyncio
import argparse
from torrentp import TorrentDownloader
def argsuments():
{}
async def main():
torrent_file = TorrentDownloader("test.torrent", ".")
# Добавляем ключевое слово await перед вызовом функции
await torrent_file.start_download()
'''
параметры запуска
-h help
file output
'''
if __name__ == "__main__":
asyncio.run(main())