diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-12-23 12:07:04 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-12-23 12:07:04 -0600 |
| commit | 382a6b556dcd0f328c4506e7e4907aa1cf5b5ae4 (patch) | |
| tree | 7ee3a4b93bc3dcb0f6ed3ca37d090e1ae539ed47 | |
| parent | 17a9b0cd154c9b0af96628e66b30bc3b8d771559 (diff) | |
| download | invidious-382a6b556dcd0f328c4506e7e4907aa1cf5b5ae4.tar.gz invidious-382a6b556dcd0f328c4506e7e4907aa1cf5b5ae4.tar.bz2 invidious-382a6b556dcd0f328c4506e7e4907aa1cf5b5ae4.zip | |
Update RSS schema
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index ff2b894c..e166e599 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1939,7 +1939,8 @@ get "/feed/channel/:ucid" do |env| feed = XML.build(indent: " ", encoding: "UTF-8") do |xml| xml.element("feed", "xmlns:yt": "http://www.youtube.com/xml/schemas/2015", - "xmlns:media": "http://search.yahoo.com/mrss/", xmlns: "http://www.w3.org/2005/Atom") do + "xmlns:media": "http://search.yahoo.com/mrss/", xmlns: "http://www.w3.org/2005/Atom", + "xml:lang": "en-US") do xml.element("link", rel: "self", href: "#{host_url}#{path}") xml.element("id") { xml.text "yt:channel:#{ucid}" } xml.element("yt:channelId") { xml.text ucid } @@ -2060,7 +2061,8 @@ get "/feed/private" do |env| query = env.request.query.not_nil! feed = XML.build(indent: " ", encoding: "UTF-8") do |xml| - xml.element("feed", "xmlns:yt": "http://www.w3.org/2005/Atom", "xmlns:media": "http://search.yahoo.com/mrss/", + xml.element("feed", "xmlns:yt": "http://www.youtube.com/xml/schemas/2015", + "xmlns:media": "http://search.yahoo.com/mrss/", xmlns: "http://www.w3.org/2005/Atom", "xml:lang": "en-US") do xml.element("link", "type": "text/html", rel: "alternate", href: "#{host_url}/feed/subscriptions") xml.element("link", "type": "application/atom+xml", rel: "self", href: "#{host_url}#{path}?#{query}") |
