sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 5cef3ce66158875d25f5d7606a260ff449fb866a
parent e703325484246468e4fd04707d759a8a9f35f948
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 21 Apr 2019 11:55:05 +0200

sfeed_mbox: show enclosure url when it is non-empty

Diffstat:
Msfeed_mbox.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sfeed_mbox.c b/sfeed_mbox.c @@ -112,7 +112,10 @@ printfeed(FILE *fp, const char *feedname) printf("Content-Transfer-Encoding: binary\n"); printf("X-Feedname: %s\n\n", feedname); - printf("%s\n\n", fields[FieldLink]); + printf("%s\n", fields[FieldLink]); + if (fields[FieldEnclosure][0]) + printf("\nEnclosure:\n%s\n", fields[FieldEnclosure]); + fputs("\n", stdout); } }