good scale, width, height

💭 this will make the video stable but the video quality is little improved.

 how about the video quality?, this, i make like this so that heroku and railway users can get a fairly stable video quality.
This commit is contained in:
levina 2021-09-10 10:58:56 +07:00 committed by GitHub
parent 96722b5806
commit 1042aea001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ def raw_converter(dl, song, video):
def youtube(url: str): def youtube(url: str):
try: try:
params = {"format": "best[height=?480]/best", "noplaylist": True} params = {"format": "best[height=?720]/best", "noplaylist": True}
yt = YoutubeDL(params) yt = YoutubeDL(params)
info = yt.extract_info(url, download=False) info = yt.extract_info(url, download=False)
return info['url'] return info['url']