Fix Style/VariableNames issues

This commit is contained in:
syeopite 2021-09-24 19:15:23 -07:00
parent 20cb751ff6
commit 35d15c7c2b
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82
9 changed files with 42 additions and 41 deletions

View file

@ -703,13 +703,13 @@ get "/subscription_manager" do |env|
xml.element("outline", text: title, title: title) do
subscriptions.each do |channel|
if format == "newpipe"
xmlUrl = "https://www.youtube.com/feeds/videos.xml?channel_id=#{channel.id}"
xml_url = "https://www.youtube.com/feeds/videos.xml?channel_id=#{channel.id}"
else
xmlUrl = "#{HOST_URL}/feed/channel/#{channel.id}"
xml_url = "#{HOST_URL}/feed/channel/#{channel.id}"
end
xml.element("outline", text: channel.author, title: channel.author,
"type": "rss", xmlUrl: xmlUrl)
"type": "rss", xmlUrl: xml_url)
end
end
end
@ -1351,7 +1351,7 @@ error 500 do |env, ex|
error_template(500, ex)
end
static_headers do | response |
static_headers do |response|
response.headers.add("Cache-Control", "max-age=2629800")
end