mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-15 13:06:26 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -192,11 +192,9 @@ module Invidious::Routes::Feeds
|
||||
views: views,
|
||||
description_html: description_html,
|
||||
length_seconds: 0,
|
||||
live_now: false,
|
||||
paid: false,
|
||||
premium: false,
|
||||
premiere_timestamp: nil,
|
||||
author_verified: false,
|
||||
badges: VideoBadges::None,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@ module Invidious::Routes::PreferencesRoute
|
||||
annotations_subscribed ||= "off"
|
||||
annotations_subscribed = annotations_subscribed == "on"
|
||||
|
||||
preload = env.params.body["preload"]?.try &.as(String)
|
||||
preload ||= "off"
|
||||
preload = preload == "on"
|
||||
|
||||
autoplay = env.params.body["autoplay"]?.try &.as(String)
|
||||
autoplay ||= "off"
|
||||
autoplay = autoplay == "on"
|
||||
@@ -144,6 +148,7 @@ module Invidious::Routes::PreferencesRoute
|
||||
preferences = Preferences.from_json({
|
||||
annotations: annotations,
|
||||
annotations_subscribed: annotations_subscribed,
|
||||
preload: preload,
|
||||
autoplay: autoplay,
|
||||
captions: captions,
|
||||
comments: comments,
|
||||
|
||||
Reference in New Issue
Block a user