mirror of
https://github.com/iv-org/invidious.git
synced 2026-07-27 16:06:47 -05:00
remove old newpipe export format
This commit is contained in:
parent
ac4c597aa7
commit
33cf701333
@ -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 = "Invidious Subscriptions"
|
||||||
title = "YouTube Subscriptions"
|
|
||||||
else
|
|
||||||
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 = "#{HOST_URL}/feed/channel/#{channel.id}"
|
||||||
xml_url = "https://www.youtube.com/feeds/videos.xml?channel_id=#{channel.id}"
|
|
||||||
else
|
|
||||||
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)
|
||||||
|
|||||||
@ -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">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user