From bccea98f9e266b5276948709d303085c060e22a2 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 10 Sep 2021 13:56:49 +0700 Subject: [PATCH] testing --- bot/videoplayer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/videoplayer.py b/bot/videoplayer.py index 9af1576..feed8ec 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -34,7 +34,7 @@ def raw_converter(dl, song, video): def youtube(url: str): try: - params = {"format": "best[height=?720]/best", "noplaylist": True} + params = {"format": "best[height=?480]/best", "noplaylist": True} yt = YoutubeDL(params) info = yt.extract_info(url, download=False) return info['url'] @@ -71,7 +71,7 @@ async def startvideo(client, m: Message): process = raw_converter(livelink, f'audio{chat_id}.raw', f'video{chat_id}.raw') FFMPEG_PROCESSES[chat_id] = process msg = await m.reply("🔁 **starting video streaming...**") - await asyncio.sleep(8) + await asyncio.sleep(10) try: audio_file = f'audio{chat_id}.raw' video_file = f'video{chat_id}.raw'