test wip
This commit is contained in:
parent
7646759ead
commit
93d330e854
@ -70,12 +70,12 @@ class MasterService:
|
||||
downloader: BaseParser | YappyParser | MyMailParser | TelegramParser = MasterService.get_parser(video_params)
|
||||
match downloader:
|
||||
case TelegramParser():
|
||||
if _check_config():
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.get_running_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
loop.run_until_complete(downloader.video_download())
|
||||
f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download())
|
||||
r = f.result(60)
|
||||
# loop.close()
|
||||
return result
|
||||
return r
|
||||
case _:
|
||||
result = downloader.video_download()
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user