Fix url in storyboards

このコミットが含まれているのは:
Omar Roth 2019-04-12 07:29:47 -05:00
コミット af1823db8c
2個のファイルの変更5行の追加5行の削除

ファイルの表示

@ -4230,9 +4230,9 @@ get "/latest_version" do |env|
env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"
next
else
itag = download_widget["itag"].as_s
local = "true"
end
itag = download_widget["itag"].as_s
local = "true"
end
end
id ||= env.params.query["id"]?

ファイルの表示

@ -486,7 +486,7 @@ struct Video
if storyboard = storyboards.try &.["spec"]?
.try &.as_s
return [{
url: storyboard.split("#")[0].sub("M$M", "$N"),
url: storyboard.split("#")[0],
width: 106,
height: 60,
count: -1,
@ -528,7 +528,7 @@ struct Video
storyboard_height = storyboard_height.to_i
items << {
url: "#{url}&sigh=#{sigh}".sub("$L", i),
url: "#{url}&sigh=#{sigh}".sub("$L", i).sub("$N", "M$M"),
width: width,
height: height,
count: count,