1
This commit is contained in:
@@ -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())
|
||||
Reference in New Issue
Block a user