Fix channel feeds

This commit is contained in:
Omar Roth 2018-08-18 18:38:33 -05:00
parent 55f8fd0b58
commit 16c7d99dd8

View file

@ -1386,7 +1386,7 @@ get "/feed/channel/:ucid" do |env|
end end
nodeset = document.xpath_nodes(%q(//li[contains(@class, "feed-item-container")])) nodeset = document.xpath_nodes(%q(//li[contains(@class, "feed-item-container")]))
extract_videos(nodeset).each do |video| extract_videos(nodeset, ucid).each do |video|
xml.element("entry") do xml.element("entry") do
xml.element("id") { xml.text "yt:video:#{video.id}" } xml.element("id") { xml.text "yt:video:#{video.id}" }
xml.element("yt:videoId") { xml.text video.id } xml.element("yt:videoId") { xml.text video.id }