Invidious is an alternative front-end to YouTube
RSS: return 404 if youtube playlist doesnt exist
ChunkyProgrammer6dd89bd40162
diff --git a/src/invidious/routes/feeds.cr b/src/invidious/routes/feeds.crindex ea7fb396..989c7121 100644--- a/src/invidious/routes/feeds.cr+++ b/src/invidious/routes/feeds.cr@@ -309,8 +309,9 @@ module Invidious::Routes::Feedsendresponse = YT_POOL.client &.get("/feeds/videos.xml?playlist_id=#{plid}")- document = XML.parse(response.body)+ return error_atom(404, NotFoundException.new("Playlist does not exist.")) if response.status_code == 404+ document = XML.parse(response.body)document.xpath_nodes(%q(//*[@href]|//*[@url])).each do |node|node.attributes.each do |attribute|case attribute.name