This commit is contained in:
nikili0n
2023-10-18 00:47:58 +03:00
committed by Dantenerosas
parent dc066a17ab
commit b2806da8ca
2 changed files with 2 additions and 2 deletions

View File

@@ -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)