mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add text/xml as a possible mime type for xml file uploads
This commit is contained in:
parent
9607fe03af
commit
8d47ec714e
1 changed files with 1 additions and 1 deletions
|
@ -818,7 +818,7 @@ post "/data_control" do |env|
|
|||
end
|
||||
end
|
||||
when "import_youtube"
|
||||
if type == "application/xml"
|
||||
if type == "application/xml" || type == "text/xml"
|
||||
subscriptions = XML.parse(body)
|
||||
user.subscriptions += subscriptions.xpath_nodes(%q(//outline[@type="rss"])).map do |channel|
|
||||
channel["xmlUrl"].match(/UC[a-zA-Z0-9_-]{22}/).not_nil![0]
|
||||
|
|
Loading…
Reference in a new issue