diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | nijitrack.py | 11 |
2 files changed, 12 insertions, 2 deletions
@@ -4,6 +4,9 @@ config.json .github main.py .idea +tables +stats +.vscode # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/nijitrack.py b/nijitrack.py index a137edb..20cc4c8 100644 --- a/nijitrack.py +++ b/nijitrack.py @@ -60,9 +60,16 @@ def generate_individual_pages(server: SQLHandler, data: list): os.mkdir("stats") if not os.path.exists("tables"): os.mkdir("tables") + excluded_channels = fs.get_excluded_channels() for channel in data: - builder.build_individual_page(server, CONFIG, channel) - builder.build_table_page(server, CONFIG, channel) + if channel["id"] in excluded_channels: + continue + try: + builder.build_individual_page(server, CONFIG, channel) + builder.build_table_page(server, CONFIG, channel) + except Exception as e: + print(f"ERROR: {e} - {channel['name']}") + continue |
