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):
|
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']
|
||||||
|
Loading…
Reference in New Issue
Block a user