aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/__init__.py')
-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>'