ytdl update requirement

This commit is contained in:
omg-xtao 2023-04-05 19:31:58 +08:00 committed by GitHub
parent 4dac358339
commit 6eec0c8a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ from pagermaid.utils import pip_install, lang
from pagermaid.enums import Message
from pagermaid.services import bot
pip_install("yt-dlp", version="==2022.11.11", alias="yt_dlp")
pip_install("yt-dlp", version="==2023.3.4", alias="yt_dlp")
import yt_dlp
@ -103,7 +103,7 @@ async def start_download(message: Message, url: str):
@listener(command="ytdl",
description="Upload Youtube、Bilibili video to telegram",
description="Upload Youtube video to telegram",
parameters="[url]")
async def ytdl(message: Message):
global ytdl_is_downloading