summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-09-24 19:15:23 -0700
committersyeopite <syeopite@syeopite.dev>2021-10-25 01:12:26 -0700
commit35d15c7c2b5d71582f7ce4b7875a777ccb0ebcd8 (patch)
tree60222168d15a0a1ddf8e2ee94d45ea9e8c732242 /src/invidious.cr
parent20cb751ff65a179a694fde4ce2bb60dda0e68b30 (diff)
downloadinvidious-35d15c7c2b5d71582f7ce4b7875a777ccb0ebcd8.tar.gz
invidious-35d15c7c2b5d71582f7ce4b7875a777ccb0ebcd8.tar.bz2
invidious-35d15c7c2b5d71582f7ce4b7875a777ccb0ebcd8.zip
Fix Style/VariableNames issues
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index e2c83bda..f41ae6f8 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -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