From cc0d89325feb9fd9fcd4806b31d60c6eb282ebc4 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 13 Sep 2021 05:49:35 +0700 Subject: [PATCH] fixes small problem --- bot/videoplayer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/videoplayer.py b/bot/videoplayer.py index e727b96..3b27260 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -52,11 +52,11 @@ def youtube(url: str): params = {"format": "best[height=?480]/best", "noplaylist": True} yt = YoutubeDL(params) info = yt.extract_info(url, download=False) - return info['url'], return info['title'], return info['duration'] + return info['url'], info['title'], info['duration'] except ExtractorError: - return + return None, None except Exception: - return + return None, None @Client.on_message(command(["vplay", f"vplay@{Veez.BOT_USERNAME}"]) & filters.group & ~filters.edited)