basic feed rebuilding
This commit is contained in:
parent
4ab05c9000
commit
6add19c288
17 changed files with 772 additions and 69 deletions
11
repub/postprocessing.py
Normal file
11
repub/postprocessing.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class SortRssItems:
|
||||
def __init__(self, file, feed_options):
|
||||
self.file = file
|
||||
self.feed_options = feed_options
|
||||
self.buffer = ""
|
||||
|
||||
def write(self, data):
|
||||
self.buffer += data.decode("utf-8")
|
||||
|
||||
def close(self):
|
||||
self.file.write(sorted)
|
||||
Loading…
Add table
Add a link
Reference in a new issue