mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix URI for storyboard extractor
This commit is contained in:
parent
c049ba59ff
commit
71cd8918be
1 changed files with 5 additions and 2 deletions
|
@ -721,10 +721,13 @@ struct Video
|
||||||
return items
|
return items
|
||||||
end
|
end
|
||||||
|
|
||||||
url = storyboards.shift
|
url = URI.parse(storyboards.shift)
|
||||||
|
params = HTTP::Params.parse(url.query || "")
|
||||||
|
|
||||||
storyboards.each_with_index do |storyboard, i|
|
storyboards.each_with_index do |storyboard, i|
|
||||||
width, height, count, storyboard_width, storyboard_height, interval, _, sigh = storyboard.split("#")
|
width, height, count, storyboard_width, storyboard_height, interval, _, sigh = storyboard.split("#")
|
||||||
|
params["sigh"] = sigh
|
||||||
|
url.query = params.to_s
|
||||||
|
|
||||||
width = width.to_i
|
width = width.to_i
|
||||||
height = height.to_i
|
height = height.to_i
|
||||||
|
@ -734,7 +737,7 @@ struct Video
|
||||||
storyboard_height = storyboard_height.to_i
|
storyboard_height = storyboard_height.to_i
|
||||||
|
|
||||||
items << {
|
items << {
|
||||||
url: "#{url}&sigh=#{sigh}".sub("$L", i).sub("$N", "M$M"),
|
url: url.to_s.sub("$L", i).sub("$N", "M$M"),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
count: count,
|
count: count,
|
||||||
|
|
Loading…
Reference in a new issue