auto detection for missing object
This commit is contained in:
levina 2021-09-14 10:24:05 +07:00 committed by GitHub
parent 8c4ba6accd
commit c5f9a1130f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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