forked from midou/invidious
Formatting
This commit is contained in:
parent
dda02f783f
commit
38b617d848
@ -7,7 +7,7 @@ class Invidious::Routes::Embed::Show < Invidious::Routes::BaseRoute
|
|||||||
continuation = process_continuation(PG_DB, env.params.query, plid, id)
|
continuation = process_continuation(PG_DB, env.params.query, plid, id)
|
||||||
|
|
||||||
if md = env.params.query["playlist"]?
|
if md = env.params.query["playlist"]?
|
||||||
.try &.match(/[a-zA-Z0-9_-]{11}(,[a-zA-Z0-9_-]{11})*/)
|
.try &.match(/[a-zA-Z0-9_-]{11}(,[a-zA-Z0-9_-]{11})*/)
|
||||||
video_series = md[0].split(",")
|
video_series = md[0].split(",")
|
||||||
env.params.query.delete("playlist")
|
env.params.query.delete("playlist")
|
||||||
end
|
end
|
||||||
@ -106,8 +106,8 @@ class Invidious::Routes::Embed::Show < Invidious::Routes::BaseRoute
|
|||||||
end
|
end
|
||||||
|
|
||||||
if preferences.annotations_subscribed &&
|
if preferences.annotations_subscribed &&
|
||||||
subscriptions.includes?(video.ucid) &&
|
subscriptions.includes?(video.ucid) &&
|
||||||
(env.params.query["iv_load_policy"]? || "1") == "1"
|
(env.params.query["iv_load_policy"]? || "1") == "1"
|
||||||
params.annotations = true
|
params.annotations = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user