You are not logged in.

#1 2020-05-02 09:46:38

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

[SOLVED] newsboat skip reloading invalid feed

Hello everybody,

whenever I run newsboat I am using the R option to reload my feeds. Lately a couple of feeds started to give me errors while reloading. I checked the urls and it turns out the domains are not active anymore because the author changed his domain name. I subscribed to the new domain to get the new feeds. I want to keep the already downloaded articles from the old domains without reloading the inactive feeds. Though I went through the man pages I could not find how to skip reloading inactive feeds.

Any suggestions are appreciated!

Thank you in advance!

Last edited by amaro (2020-05-02 16:28:44)

Offline

#2 2020-05-02 10:32:02

latalante1
Member
Registered: 2018-08-30
Posts: 111

Re: [SOLVED] newsboat skip reloading invalid feed

?               help
r               reload                 Reload currently selected feed
R              reload-all             Reload all feeds

Edit: Oops. I misunderstood.

Last edited by latalante1 (2020-05-02 10:50:38)

Offline

#3 2020-05-02 11:59:50

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: [SOLVED] newsboat skip reloading invalid feed

Lower r should work but I will have to manually select more than 90 feeds every time. I am looking for more elegant solution.

Offline

#4 2020-05-02 14:54:45

latalante1
Member
Registered: 2018-08-30
Posts: 111

Re: [SOLVED] newsboat skip reloading invalid feed

Maybe something like this will be useful.

Tag all these unavailable URLs.

http://techblog.com/rss/ fail
http://oldblog.org/rss/ fail

In the newsboat configuration set:

reload-only-visible-feeds yes
define-filter "all feeds except 'fail' tag" "tags !# \"fail\""

Under the 'f' key you have a filter defined to exclude bad links, pressing 'R' refreshes only visible feeds.

Edit:
You can 'transpose' newsboat sqlite base and urls file. See here:
https://github.com/newsboat/newsboat/bl … tenance.sh

Being cautious with a full backup.

sed -i 's|oldurl|newurl|' urls
sqlite3 cache.db "update rss_feed set rssurl='newurl' where rssurl = 'oldurl' ; update rss_item set feedurl='newurl' where feedurl='oldurl'"

Last edited by latalante1 (2020-05-02 15:47:58)

Offline

#5 2020-05-02 16:28:09

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: [SOLVED] newsboat skip reloading invalid feed

Excellent suggestion! Works flawlessly!
Thank you, latalante1!

Offline

Board footer

Powered by FluxBB