fixed it for the /info/ path too
This commit is contained in:
parent
abb7868e7d
commit
af263ce55f
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def twitfix(subpath):
|
||||||
|
|
||||||
@app.route('/info/<path:subpath>')
|
@app.route('/info/<path:subpath>')
|
||||||
def info(subpath):
|
def info(subpath):
|
||||||
with ydl:
|
with youtube_dl.YoutubeDL({'outtmpl': '%(id)s.%(ext)s'}) as ydl:
|
||||||
result = ydl.extract_info(subpath, download=False)
|
result = ydl.extract_info(subpath, download=False)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue