orrg

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/orrg.git
Log | Files | Refs | README | LICENSE

commit 2531331a6c1f20a3585c146ea73bce18bdba596c
parent 9bdd8978ec1177627a2182317b202bce243f17ca
Author: René Wagner <rwagner@rw-net.de>
Date:   Wed, 25 Nov 2020 20:35:02 +0100

show date when feed was fetched

Diffstat:
MREADME.md | 10++++++----
Morrg.pl | 1+
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -1,14 +1,17 @@ # orrg (online rss feed reader for gemini) *orrg* is a cgi script for [gemini](gemini://gemini.circumlunar.space) servers. -It fetches an arbitrary rss feed given by the user and renders its content as a gemini site. +It fetches an arbitrary rss/atom feed given by the user and renders its content as a gemini site. Visit the [demo](gemini://gmndemo.clttr.info/orrg.pl). ## features -Load an arbitrary atom/rss feed. - +- load an atom/rss feed given by user input +- render feed (channel & item info) as a gemini site + +Fetching feeds from gemini is currently not supported -> https://todo.sr.ht/~rwa/gmni-perl/4 + # installation - setup your geminiserver with cgi enabled @@ -21,4 +24,3 @@ Load an arbitrary atom/rss feed. - Perl >= 5.28 with modules - URI::Escape - XML::FeedPP - - LWP::UserAgent diff --git a/orrg.pl b/orrg.pl @@ -63,6 +63,7 @@ sub create_response } push @body, '# '. $feed->title; + push @body, 'fetched '. strftime('%Y-%m-%dT%H:%M:%SZ', gmtime()); push @body, ('', $feed->description); push @body, ('=> '.$feed->link.' open website', ''); push @body, ('## recent feed items', '');