From c24337da6add85b3d1786d6326169f979088e490 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 8 Nov 2022 19:09:59 +0900 Subject: Add some description --- README.md | 17 +++++++++++++++++ src/fead.py | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab3ff67 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# fead + +This is a tool for advertising other blogs you like on your own +by embedding their latest post's summary generated from their web feed. +It is a rewrite of [openring] with ([rejected]) concurrency support +in Python without any third-party library. + +## Copying + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published +by the Free Software Foundation, either [version 3 of the License][agplv3], +or (at your option) any later version. + +[openring]: https://sr.ht/~sircmpwn/openring +[rejected]: https://lists.sr.ht/~sircmpwn/public-inbox/patches/27621 +[agplv3]: https://www.gnu.org/licenses/agpl-3.0.html diff --git a/src/fead.py b/src/fead.py index eede317..4fd2b1b 100755 --- a/src/fead.py +++ b/src/fead.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Format mbox as HTML/XML -# Copyright (C) 2021-2022 Nguyễn Gia Phong +# Generate advert from web feeds +# Copyright (C) 2022 Nguyễn Gia Phong # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published @@ -153,7 +153,7 @@ async def fetch_all(urls): try: return await tasks except: - tasks.cancel() + tasks.cancel() # structured concurrency raise -- cgit 1.4.1