From 79cd896c3991df4a025f646e5e29543a48db4f76 Mon Sep 17 00:00:00 2001 From: Dantenerosas Date: Wed, 18 Oct 2023 00:54:24 +0300 Subject: [PATCH] wip --- src/core/master_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/master_service.py b/src/core/master_service.py index 268817e..8f51a3d 100644 --- a/src/core/master_service.py +++ b/src/core/master_service.py @@ -72,10 +72,10 @@ class MasterService: case TelegramParser(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) - f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download(), loop) - r = f.result(600) + result = loop.run_until_complete(downloader.video_download()) + # r = f.result(600) # loop.close() - return r + return result case _: result = downloader.video_download() return result