-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
33 lines (27 loc) · 984 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# config.py
# RSS-Static-Reader, parses RSS feeds into organized HTML documents, linking to the articles
# Copyright (C) 2021 Daniel Wasiak
# You should have received a copy of the GNU General Public License.
# See `LICENSE.txt` for more details.
# Main configuration:
RELOAD_TIME: float = 15 # in minutes
RSS_FEED_FILE: str = "rss-feed-list.conf"
TARGET_HTML_DIR: str = "html"
RANDOM_ARTICLE_LINK: bool = True
# Advanced config:
WIDGET_LIST: tuple = (
'article_link_block',
'source_link_block',
'category_link_block',
'back_link_block',
'page_title',
'footer_generate_time',
'random_article'
)
ACCEPTED_DATETIME_FORMAT: tuple = (
'%a, %d %b %Y %H:%M:%S %z', # Common date-time string format for most feeds
'%Y-%m-%dT%H:%M:%SZ', # Added as a fix of #3 issue (feedburner.com)
)
if __name__ == "__main__":
print("Error: This is configuration file for RSS Static Reader and not a standalone program")
exit(1)