aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-16 10:31:36 -0500
committerJesús <heckyel@hyperbola.info>2020-12-16 10:31:36 -0500
commitb53fd2c0042b492af512f7dfc9e100035d03eee0 (patch)
treed4a1abf630b591a5a4d1ebb79967ed4826cb6cac /youtube
parentcfd9e977a7884a7d997a5a4d03bdb3e22c1037ed (diff)
downloadyt-local-b53fd2c0042b492af512f7dfc9e100035d03eee0.tar.lz
yt-local-b53fd2c0042b492af512f7dfc9e100035d03eee0.tar.xz
yt-local-b53fd2c0042b492af512f7dfc9e100035d03eee0.zip
Migration general theme: fix video player method in javascript
Diffstat (limited to 'youtube')
-rw-r--r--youtube/__init__.py2
1 files changed, 1 insertions, 1 deletions
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>'