wip
This commit is contained in:
parent
6424c12498
commit
fff27fee0a
@ -72,10 +72,10 @@ class MasterService:
|
|||||||
case TelegramParser():
|
case TelegramParser():
|
||||||
loop = asyncio.new_event_loop()
|
loop = asyncio.new_event_loop()
|
||||||
asyncio.set_event_loop(loop)
|
asyncio.set_event_loop(loop)
|
||||||
f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download(), loop)
|
result = loop.run_until_complete(downloader.video_download())
|
||||||
r = f.result(600)
|
# r = f.result(600)
|
||||||
# loop.close()
|
# loop.close()
|
||||||
return r
|
return result
|
||||||
case _:
|
case _:
|
||||||
result = downloader.video_download()
|
result = downloader.video_download()
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user