diff options
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 715bbd89..1e30d39f 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -400,6 +400,15 @@ get "/embed/:id" do |env| end listen ||= false + autoplay = env.params.query["autoplay"]?.try &.to_i + autoplay ||= 0 + + controls = env.params.query["controls"]?.try &.to_i + controls ||= 1 + + video_loop = env.params.query["loop"]?.try &.to_i + video_loop ||= 0 + client = make_client(YT_URL) begin video = get_video(id, client, PG_DB) |
