mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 22:13:37 +00:00
Fix url in storyboards
This commit is contained in:
parent
a2ab6b89f1
commit
af1823db8c
@ -4230,9 +4230,9 @@ get "/latest_version" do |env|
|
|||||||
env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"
|
env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"
|
||||||
next
|
next
|
||||||
else
|
else
|
||||||
itag = download_widget["itag"].as_s
|
itag = download_widget["itag"].as_s
|
||||||
local = "true"
|
local = "true"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
id ||= env.params.query["id"]?
|
id ||= env.params.query["id"]?
|
||||||
|
@ -486,7 +486,7 @@ struct Video
|
|||||||
if storyboard = storyboards.try &.["spec"]?
|
if storyboard = storyboards.try &.["spec"]?
|
||||||
.try &.as_s
|
.try &.as_s
|
||||||
return [{
|
return [{
|
||||||
url: storyboard.split("#")[0].sub("M$M", "$N"),
|
url: storyboard.split("#")[0],
|
||||||
width: 106,
|
width: 106,
|
||||||
height: 60,
|
height: 60,
|
||||||
count: -1,
|
count: -1,
|
||||||
@ -528,7 +528,7 @@ struct Video
|
|||||||
storyboard_height = storyboard_height.to_i
|
storyboard_height = storyboard_height.to_i
|
||||||
|
|
||||||
items << {
|
items << {
|
||||||
url: "#{url}&sigh=#{sigh}".sub("$L", i),
|
url: "#{url}&sigh=#{sigh}".sub("$L", i).sub("$N", "M$M"),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
count: count,
|
count: count,
|
||||||
|
Loading…
Reference in New Issue
Block a user