RSS News HeadLines 2.0 fixed

by P. Andreas Schmidt, IVE

Version 6 (October 18, 2024)

Download (100 downloads)

Premium! - no root - no ADB

-V6:added a retry RSS fetch on connection reset exception (and clearing the variables so no mixup in the error output)
Added another atomic for the "just old" option so no need to 'clean up' again.
-V5:fixed API call being too long = showing no list (thx Franz), also the sharing link feature - added some of the new blocks
V2:fixed bug in API call, now premium flow

I've further improved my initial improvement on Nobin's headlines flow. The biggest change is creating a html view list of the headlines so you don't have to switch between the list dialog and web view. This allows also to return to the point where you were, as well as being able to fold headlines list per channel (it will remember which are opened or closed, all this is done using cookies, but nothing personal is saved, nothing shared). Further this allowed for a filtering feature, be it to exclude what you input or to show only what matches. This is done by regex ".*your input.*" So you can filter for corona|covid, or \\d+ (yes, you need to escape).
You can in/decrease font size.

This has been a lot of work for me, since I didn't have that much experience with JS, and getting the two things to work together... But it's great to see it worked out. And if you're looking for some input on how to pass an array from AM on to html view in JS have a look. I've tried to place explanatory comments along the way to help understand.

It can be tricky. And I have only tried it on my device. And what there is so far is also thanks to the experience of different RSS feeds in different languages, so I hope it'll cover everything, but you never know... I doubt it will. If ever you don't get a desired result (be it nothing at all or errors in the listing) you should delete 3 blocks (e.g. the initial internet check and/or the atomics) in order to add a fork with a log wait block (configure message to be ".*localhost.*" (in order to catch all html/js errors) to see where the mistake is happening. And whether you can fix it yourself or not let me know, so I can fix it or incorporate it in the flow for all.

In block 244 you'll have to edit the array to contain the RSS links you want to be fetched.

In block 168 you can
1) change the period of how "new" your news can be. This is applied to all, also those stored in atomic. Default is 24hs.

2) add things you want filtered out (preconfigured is sports).

Thx @Game Omega for his flow and letting me know about the emkc.org server:
https://llamalab.com/automate/community/flows/40160

Suggestions or bug notification welcome!

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.