diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-05-30 09:10:56 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-05-30 09:10:56 -0500 |
| commit | b8d4951a489a6569e87e65b996f23d35d33c9a82 (patch) | |
| tree | 5ab72da1f10c90da7e381a57328b8161982ffac2 | |
| parent | 471f5345e2eda823f2260146037fc889eed0043f (diff) | |
| download | invidious-b8d4951a489a6569e87e65b996f23d35d33c9a82.tar.gz invidious-b8d4951a489a6569e87e65b996f23d35d33c9a82.tar.bz2 invidious-b8d4951a489a6569e87e65b996f23d35d33c9a82.zip | |
Add support for "t" param in watch page
| -rw-r--r-- | src/invidious.cr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 1af54dd2..2d9062c3 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -245,6 +245,10 @@ get "/watch" do |env| if env.params.query["start"]? video_start = decode_time(env.params.query["start"]) end + + if env.params.query["t"]? + video_start = decode_time(env.params.query["t"]) + end video_start ||= 0 if env.params.query["end"]? |
