|
|
@ -2020,6 +2020,14 @@ get "/feed/channel/:ucid" do |env|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xml.element("content", type: "xhtml") do
|
|
|
|
|
|
|
|
xml.element("div", xmlns: "http://www.w3.org/1999/xhtml") do
|
|
|
|
|
|
|
|
xml.element("a", href: "#{host_url}/watch?v=#{video.id}") do
|
|
|
|
|
|
|
|
xml.element("img", src: "#{host_url}/vi/#{video.id}/mqdefault.jpg")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
xml.element("published") { xml.text video.published.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
|
|
|
xml.element("published") { xml.text video.published.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
|
|
|
|
|
|
|
|
|
|
|
xml.element("media:group") do
|
|
|
|
xml.element("media:group") do
|
|
|
@ -2135,6 +2143,14 @@ get "/feed/private" do |env|
|
|
|
|
xml.element("uri") { xml.text "#{host_url}/channel/#{video.ucid}" }
|
|
|
|
xml.element("uri") { xml.text "#{host_url}/channel/#{video.ucid}" }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xml.element("content", type: "xhtml") do
|
|
|
|
|
|
|
|
xml.element("div", xmlns: "http://www.w3.org/1999/xhtml") do
|
|
|
|
|
|
|
|
xml.element("a", href: "#{host_url}/watch?v=#{video.id}") do
|
|
|
|
|
|
|
|
xml.element("img", src: "#{host_url}/vi/#{video.id}/mqdefault.jpg")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
xml.element("published") { xml.text video.published.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
|
|
|
xml.element("published") { xml.text video.published.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
|
|
|
xml.element("updated") { xml.text video.updated.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
|
|
|
xml.element("updated") { xml.text video.updated.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
|
|
|
|
|
|
|
|
|
|
|