OtterBrowser / otter-browser

Otter Browser aims to recreate the best aspects of the classic Opera (12.x) UI using Qt5
https://otter-browser.org
GNU General Public License v3.0
1.83k stars 277 forks source link

Feeds reader module #1415

Closed Emdek closed 6 years ago

Emdek commented 7 years ago

We need at least basic feeds reader.

The most important stuff:

Other tasks:

Emdek commented 7 years ago

Related ticket: #457.

Emdek commented 7 years ago

And a bit: #1272.

ersi-dnd commented 7 years ago

And first of all you will add a stylesheet for RSS pages, right? Like this 2017-09-22-164717-rss In Opera, this function has its own file called webfeeds.html so users can alter it at will. In old Opera forums, there was a thread about it, a guy had styled it like Safari's RSS.

ersi-dnd commented 7 years ago

This simple style is the most useful thing: You don't have to subscribe to and download every feed, just bookmark the link and visit to read the updates. Some feeds are good to download (because the content is useful and the feed contains complete articles), others are only good for bookmarking like this.

ersi-dnd commented 7 years ago

The location of webfeeds.html can be found (and changed) at opera:config#UserPrefs|WebfeedsHTMLTemplateFile

Emdek commented 7 years ago

@ersi-dnd, it has separate ticket, and right now it's set to be a XSLT stylesheet, but surely that would make it harder to edit by users...

zakius commented 7 years ago

http://nullprogram.com/blog/2013/09/23/ everything wrong about RSS and what to be careful about

Frenzie commented 7 years ago

@zakius Quite true. I came to the same conclusion with Atom 0.3. :-)

There is (or was?) one tiny annoyance with Atom though. Empty content (serving merely as an update notification) was technically considered an invalid feed.

That GUID stuff is also very annoying for us in FreshRSS. See, for instance, https://github.com/FreshRSS/FreshRSS/pull/1558

But as far as Otter goes, surely there is some library (like SimplePie for FreshRSS) that does a half-sensible job abstracting RSS away. And even if there isn't, QuiteRSS (GPLv3) has stuff like this.

Emdek commented 7 years ago

@Frenzie, QuiteRSS is useless, as noted earlier on IRC they even mix in SQL in that file... I was considering using this: https://github.com/akrennmair/newsbeuter/tree/master/rss But now I'm considering custom parser, starting with Atom and RSS 2.0.

Frenzie commented 7 years ago

@Emdek I didn't really mean QuiteRSS, just something like QuiteRSS. Sorry about being unclear. :-P (I just happen to like QuiteRSS from a user's POV.)

Anyway, I also see the SQL mixed in there on a closer look (weird) but perhaps basic parsing logic like this could still be helpful to show some pitfalls they've already tackled. Well, for RSS anyway. The Atom stuff is pretty straightforward.

Edit: that newsboat code definitely looks much cleaner than QuiteRSS https://github.com/newsboat/newsboat/tree/master/rss

sjehuda commented 1 year ago

@ersi-dnd what do you think of "table of contents" instead of table/tiles?

image

ersi-dnd commented 1 year ago

@sjehuda My first preference would be to have it visually similar to the way Opera 11 displays it. But probably an even better idea is to take it a step further and provide options, so the user can choose whether to see only the headings or also the content somehow.

sjehuda commented 1 year ago

I think options is good.

I'm intending to apply several styles (one of which is the style of the Otter homepage), but the one of Opera 11 that you refer to, requires someone more skillful at CSS than myself.

My attempts weren't perfect. See https://openuserjs.org/scripts/sjehuda/Newspaper/issues/Improve_CSS#comment-180985d9b61

If you know or find someone who can help, please do let me know.

sjehuda commented 1 year ago

Here is an example of a design that is adaptable for wide and small display. See https://poolp.org/

When display is wide, items are shown like in Opera 11 and when display is narrow, items are displayed one below the other.

@ersi-dnd, do you know how to code in CSS?

ersi-dnd commented 1 year ago

Unfortunately I am not available for coding. But I think a way to start is to take a look at Opera 11 feed.css found under /usr/share/[opera]/styles on my computer. The file feed.css should be in some similar folder on your computer too, if you have old Opera installed. The way I'd develop Otter would be to take a look at the way Opera was developed every step of the way.