From b53fd2c0042b492af512f7dfc9e100035d03eee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= <heckyel@hyperbola.info> Date: Wed, 16 Dec 2020 10:31:36 -0500 Subject: Migration general theme: fix video player method in javascript --- youtube/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube/__init__.py b/youtube/__init__.py index d9edbc6..b27496d 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -49,7 +49,7 @@ def timestamp_replacement(match): for part in match.group(0).split(':'): time_seconds = 60*time_seconds + int(part) return ( - '<a href="#" onclick="document.querySelector(\'video\').currentTime=' + '<a href="#" onclick="document.getElementById(\'js-video-player\').currentTime=' + str(time_seconds) + '">' + match.group(0) + '</a>' -- cgit v1.2.3