Allow to add multiple feeds by URLs at the same time
Categories
(MailNews Core :: Feed Reader, enhancement)
Tracking
(Not tracked)
People
(Reporter: u601362, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
I have a list of feeds I usually subscribe to. It's just a plain text list of URLs
Now I set up a new OS on my laptop and I want to add those feeds there.
So I copied two of those URLs (separated by newline) into the input text field on the subscribe dialog in Thunderbird.
The URLs were entered in the input field separated by comma automatically.
Then I clicked the "Add" button.
Actual results:
An error occurred "The Feed URL could not be found. Please check the name and try again".
Expected results:
Both feeds should be subscribed
Updated•6 years ago
|
The subscribe ui is not suitable for multiple urls in a string. The well known format for dealing with multiple feed urls in batch is opml. Construct a file like:
<opml version="1.0">
<head></head>
<body>
<outline type="rss" title="Feed1" xmlUrl="https://example.com/feed1.xml"/>
<outline type="rss" title="Feed2" xmlUrl="https://example.com/feed2.xml"/>
</body>
</opml>
or this with folder hierarchy:
<head></head>
<body>
<outline title="Folder - Feed1">
<outline type="rss" title="Feed1A" xmlUrl="https://example.com/feed1A.xml"/>
<outline type="rss" title="Feed1B" xmlUrl="https://example.com/feed1B.xml"/>
<outline title="Folder - Feed2">
<outline type="rss" title="Feed2" xmlUrl="https://example.com/feed2.xml"/>
</body>
</opml>
and Import the file into a feed account (new or existing).
(In reply to alta88 from comment #1)
The subscribe ui is not suitable for multiple urls in a string. The well known format for dealing with multiple feed urls in batch is opml.
Shouldn't be too hard to make it suitable. As the string lines are already separated by comma automatically when pasting, why not split on those commas and import the items in a foreach loop sequentially?
(In reply to sunrisechain from comment #2)
(In reply to alta88 from comment #1
Shouldn't be too hard to make it suitable.
You haven't at all considered error feedback, multiple errors and different types of errors.
Another idea:
Define a file name like e.g. "<PROFILE_DIR>/importrss.txt" where when a file with such a name exists, Thunderbird will read that file when opening and try to add the URLs separated by newlines within that file.
If a feed cannot be added, firefox should write a log message to STDOUT/STDERR
This would be enough for me and we wouldn't need a GUI.
This absolute edge case will not be added. It's something for an extension. Do not reopen closed bugs.
Description
•