From c5f9a1130fa51262c6aa42ad515f466ee2baccd5 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 14 Sep 2021 10:24:05 +0700 Subject: [PATCH] check #1 auto detection for missing object --- helpers/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/helpers/utils.py b/helpers/utils.py index ee89ffe..8e17202 100644 --- a/helpers/utils.py +++ b/helpers/utils.py @@ -1,8 +1,12 @@ # Copyright (C) 2021 By VeezMusicProject +import asyncio from youtube_dl import YoutubeDL from youtube_dl.utils import ExtractorError +SIGINT: int = 2 +FFMPEG_PROCESS = {} +call_py = PyTgCalls(app) ############### # Basic Utils # @@ -18,7 +22,7 @@ def raw_converter(dl, song, video): ) async def leave_call(chat_id: int): - process = FFMPEG_PROCESSES.get(chat_id) + process = FFMPEG_PROCESS.get(chat_id) if process: try: process.send_signal(SIGINT) @@ -41,4 +45,3 @@ def youtube(url: str): return None, None except Exception: return None, None -