all repos — FixYouTube-legacy @ 476e2ef39e5caac3491a4e3f9c4a7d3635d217f4

A better way to embed YouTube videos everywhere (inspired by FixTweet).

quick bug fix
Marco Andronaco andronacomarco@gmail.com
Tue, 22 Aug 2023 00:02:39 +0200
commit

476e2ef39e5caac3491a4e3f9c4a7d3635d217f4

parent

64fb6246eb911cf967c9b04224ccbbab5e3839aa

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M fxyoutube/db.pyfxyoutube/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.pyfxyoutube/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)