mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 10:16:55 +00:00
Update videodl.py
This commit is contained in:
parent
611134afe3
commit
72beb93bc3
@ -33,7 +33,7 @@ async def vdl(context):
|
|||||||
from pytube import YouTube
|
from pytube import YouTube
|
||||||
except ImportError:
|
except ImportError:
|
||||||
await context.edit('`pytube`支持库未安装,YouTube视频无法下载\n请使用 `-sh pip3 install --user '
|
await context.edit('`pytube`支持库未安装,YouTube视频无法下载\n请使用 `-sh pip3 install --user '
|
||||||
'git+https://github.com/nficano/pytube` 安装,或自行ssh安装\n\n已安装过 `pytube3` 的用户请使用 `-sh pip3 '
|
'git+https://github.com/nficano/pytube 或 -sh pip3 install pytube --upgrade ` 安装,或自行ssh安装\n\n已安装过 `pytube3` 的用户请使用 `-sh pip3 '
|
||||||
'uninstall pytube3 -y` 进行卸载')
|
'uninstall pytube3 -y` 进行卸载')
|
||||||
return
|
return
|
||||||
url = url.replace('www.youtube.com/watch?v=', 'youtu.be/')
|
url = url.replace('www.youtube.com/watch?v=', 'youtu.be/')
|
||||||
|
Loading…
Reference in New Issue
Block a user