quick bug fix
Marco Andronaco andronacomarco@gmail.com
Tue, 22 Aug 2023 00:02:39 +0200
2 files changed,
3 insertions(+),
3 deletions(-)
M
fxyoutube/db.py
→
fxyoutube/db.py
@@ -35,7 +35,7 @@ result = get_video(video)
try: temp = result[0] - timestamp = datetime.strptime(temp[9], c.TS_FORMAT) + timestamp = datetime.strptime(temp[10], c.TS_FORMAT) delta = datetime.now() - timestamp if delta > timedelta(seconds=30):
M
fxyoutube/views.py
→
fxyoutube/views.py
@@ -41,8 +41,8 @@ @app.route('/proxy/<path:path>')
def proxy(path): result = get_video(path) try: - url = result[0][8] - ext = result[0][5] + url = result[0][9] + ext = result[0][6] except IndexError: return abort(400)