diff --git a/discorss.py b/discorss.py index 4fe079b..83c71bd 100755 --- a/discorss.py +++ b/discorss.py @@ -17,6 +17,7 @@ from pathlib import Path import json import time import os +import sys import re config_dir = os.environ.get("XDG_CONFIG_HOME") @@ -26,13 +27,13 @@ if config_dir is None: config_dir = str(home_dir) + "/.config/discorss" else: config_file_path = config_dir + r"/discorss/discorss.conf" -log_file_path = r"/var/log/discorss" -# log_file_path = r"./log" -log_file_name = r"/app.log" +log_dir = r"/var/log/discorss" +log_file_path = r"/app.log" # Yes, I know you "can't parse HTML with regex", but # just watch me. html_filter = re.compile(r"\<\/?([A-Za-z \:\.\/\"\=])*\>") success_codes = ["200", "201", "202", "203", "204", "205", "206"] +app_config = {} # This function gets and formats the brief excerpt that goes in the embed