obligatory fix commit for the stuff I didn't get right the first time

This commit is contained in:
Robin Universe
2021-07-03 19:08:19 -05:00
parent 0fdcda924e
commit 80ed4bfa16
3 changed files with 5 additions and 17 deletions

View File

@ -8,7 +8,7 @@ import os
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s.%(ext)s'})
app = Flask(__name__)
@app.route('/twitfix/<path:subpath>')
@app.route('/<path:subpath>')
def twitfix(subpath):
if subpath.startswith('https://twitter.com'):
with ydl:
@ -26,5 +26,4 @@ def info(subpath):
return result
if __name__ == "__main__":
app.run(debug=False)
app.run(host='0.0.0.0', port=80)