23 lines
430 B
Python
23 lines
430 B
Python
|
|
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())
|