diff options
author | Jesús <heckyel@hyperbola.info> | 2020-12-16 10:31:36 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-16 10:31:36 -0500 |
commit | b53fd2c0042b492af512f7dfc9e100035d03eee0 (patch) | |
tree | d4a1abf630b591a5a4d1ebb79967ed4826cb6cac /youtube/__init__.py | |
parent | cfd9e977a7884a7d997a5a4d03bdb3e22c1037ed (diff) | |
download | yt-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/__init__.py')
-rw-r--r-- | youtube/__init__.py | 2 |
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>' |