diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-05 12:35:33 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-05 12:35:33 -0500 |
| commit | 1e7873d8e9bc669c19d94d1660eb82112acb80b3 (patch) | |
| tree | 6f9673584686ecbfdafb858479459d06686fd87a | |
| parent | b3d5d41496c0627fe40a68527aae007f8b14290b (diff) | |
| download | invidious-1e7873d8e9bc669c19d94d1660eb82112acb80b3.tar.gz invidious-1e7873d8e9bc669c19d94d1660eb82112acb80b3.tar.bz2 invidious-1e7873d8e9bc669c19d94d1660eb82112acb80b3.zip | |
Add 'time_continue'
| -rw-r--r-- | src/invidious/videos.cr | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index d93a7b20..cb66bd22 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -305,13 +305,17 @@ def process_video_params(query, preferences) video_loop ||= 0 video_loop = video_loop == 1 - if query["start"]? - video_start = decode_time(query["start"]) - end if query["t"]? video_start = decode_time(query["t"]) end video_start ||= 0 + if query["time_continu"]? + video_start = decode_time(query["t"]) + end + video_start ||= 0 + if query["start"]? + video_start = decode_time(query["start"]) + end if query["end"]? video_end = decode_time(query["end"]) |
