From 1e7873d8e9bc669c19d94d1660eb82112acb80b3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 5 Aug 2018 12:35:33 -0500 Subject: [PATCH] Add 'time_continue' --- src/invidious/videos.cr | 10 +++++++--- 1 file 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"])