We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46734f8 commit 003591fCopy full SHA for 003591f
app.rb
@@ -257,6 +257,7 @@
257
258
get "/youtube/:channel_id/:username.ics" do |channel_id, username|
259
return [404, "Credentials not configured"] if !ENV["GOOGLE_API_KEY"]
260
+ return [404, "Invalid channel ID"] if !channel_id.start_with?('UC')
261
262
@channel_id = channel_id
263
@username = username
@@ -322,6 +323,7 @@
322
323
324
get "/youtube/:channel_id/:username" do |channel_id, username|
325
326
327
328
329
playlist_id = "UU" + channel_id[2..]
0 commit comments