wip
This commit is contained in:
1 parent
44ce28bee7
commit
5392b0f0e1
2 files changed
+2
-2
No files matched your search
@@ -70,7 +70,7 @@ class MasterService:
|
||||
downloader: BaseParser | YappyParser | MyMailParser | TelegramParser = MasterService.get_parser(video_params)
|
||||
match downloader:
|
||||
case TelegramParser():
|
||||
loop = asyncio.get_running_loop()
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download())
|
||||
r = f.result(60)
|
||||
|
||||
Reference in new issue
Block a user