summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md17
-rwxr-xr-xsrc/fead.py6
2 files changed, 20 insertions, 3 deletions
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