remove old newpipe export format

This commit is contained in:
unrealtournament 2026-07-24 22:31:02 +02:00
parent ac4c597aa7
commit 33cf701333
2 changed files with 3 additions and 11 deletions

View File

@ -92,19 +92,11 @@ module Invidious::Routes::Subscriptions
export = XML.build do |xml| export = XML.build do |xml|
xml.element("opml", version: "1.1") do xml.element("opml", version: "1.1") do
xml.element("body") do xml.element("body") do
if format == "newpipe"
title = "YouTube Subscriptions"
else
title = "Invidious Subscriptions" title = "Invidious Subscriptions"
end
xml.element("outline", text: title, title: title) do xml.element("outline", text: title, title: title) do
subscriptions.each do |channel| subscriptions.each do |channel|
if format == "newpipe"
xml_url = "https://www.youtube.com/feeds/videos.xml?channel_id=#{channel.id}"
else
xml_url = "#{HOST_URL}/feed/channel/#{channel.id}" xml_url = "#{HOST_URL}/feed/channel/#{channel.id}"
end
xml.element("outline", text: channel.author, title: channel.author, xml.element("outline", text: channel.author, title: channel.author,
"type": "rss", xmlUrl: xml_url) "type": "rss", xmlUrl: xml_url)

View File

@ -57,7 +57,7 @@
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/subscription_manager?action_takeout=1&format=newpipe"><%= I18n.translate(locale, "Export subscriptions as OPML (for NewPipe & FreeTube)") %></a> <a href="/subscription_manager?action_takeout=1&format=opml_freetube"><%= I18n.translate(locale, "Export subscriptions as OPML (for FreeTube)") %></a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">