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:
parent
96722b5806
commit
1042aea001
@ -34,7 +34,7 @@ def raw_converter(dl, song, video):
|
||||
|
||||
def youtube(url: str):
|
||||
try:
|
||||
params = {"format": "best[height=?480]/best", "noplaylist": True}
|
||||
params = {"format": "best[height=?720]/best", "noplaylist": True}
|
||||
yt = YoutubeDL(params)
|
||||
info = yt.extract_info(url, download=False)
|
||||
return info['url']
|
||||
|
Loading…
Reference in New Issue
Block a user