Use ProblematicTimelineItem as needed in playlists

This commit is contained in:
syeopite
2025-03-19 23:32:46 -07:00
parent c288005bfd
commit f7810ba007
4 changed files with 45 additions and 5 deletions

View File

@@ -296,7 +296,13 @@ module Invidious::Routes::Feeds
xml.element("name") { xml.text playlist.author }
end
videos.each &.to_xml(xml)
videos.each do |video|
if video.is_a? PlaylistVideo
video.to_xml(xml)
else
video.to_xml(env, locale, xml)
end
end
end
end
else