ckampfe / russ

A TUI RSS reader with vim-like controls and a local-first, offline-first focus
GNU Affero General Public License v3.0
160 stars 18 forks source link

support local rss file #20

Open Cyrix126 opened 1 year ago

Cyrix126 commented 1 year ago

Just a proof of concept.

At the moment of fetching the url, it checks if it contains "http" in the url. If it doesn't, it tries to load it as a file.

It's very simple but too rudimentary, a lot of things could go wrong (for example if a file name contain the word http), but it works for me with this small change.

ckampfe commented 1 year ago

@Cyrix126 thank you very much for the proof of concept, this should absolutely be doable. I just need to figure out the best way to integrate it. Thanks.

slundi commented 5 months ago

@Cyrix126 thank you very much for the proof of concept, this should absolutely be doable. I just need to figure out the best way to integrate it. Thanks.

Hi, Maybe by trying an Url.parse and if it you got an Err as a result, read the file locally?