gofeed icon indicating copy to clipboard operation
gofeed copied to clipboard

Please consider exposing skipHours (in shared model)

Open DamonHD opened this issue 1 year ago • 2 comments

Please consider making (RSS) skipHours as easy to use as possible to help gofeed clients minimise feed energy and bandwidth impacts, especially in the light of more and more grid power coming from solar.

https://www.earth.org.uk/RSS-efficiency.html

Rgds

Damon

DamonHD avatar Jun 11 '24 07:06 DamonHD

This seems like a scheduling concern. gofeed doesn't do any scheduling, it just fetches a feed and parses it.

Maybe something like this would be a good application for an example test.

infogulch avatar Jun 11 '24 20:06 infogulch

As I understand it (second hand, I'm not a direct gofeed user) currently skipHours is parsed but only available in the RSS-specific view rather than the unified view. Making it available in the unified view would make it easier for some clients to code for and use.

Rgds

Damon

DamonHD avatar Jun 12 '24 05:06 DamonHD

The skipHours field is RSS-specific and isn't included in the universal gofeed.Feed type because it doesn't exist in other feed formats like Atom or JSON Feed.

While you can access skipHours using the RSS parser directly:

rssParser := &rss.Parser{}
feed, _ := rssParser.Parse(reader)
// Access feed.SkipHours

Does it work for you to just use rss.Parser?

mmcdole avatar Jan 02 '25 22:01 mmcdole

I am trying to make it as easy as possible for feed readers to do the right thing given that there is huge waste (>99%) in feed access currently.

https://www.earth.org.uk/RSS-efficiency.html

DamonHD avatar Jan 03 '25 10:01 DamonHD