summaryrefslogtreecommitdiffstats
path: root/webapi
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-02-10 23:55:16 -0800
committerGitHub <noreply@github.com>2025-02-10 23:55:16 -0800
commit414e41e4cc2357e6173a8cf673c75fa3b3643017 (patch)
tree85b830ba740ae3c9ccb886809f0ce25f59e9ecca /webapi
parente7e48caf01bccc38c11574c7fd45b5812c6ed41b (diff)
add exclusion override to holodex parse
- Hikanari Hina is technically only on hiatus
Diffstat (limited to 'webapi')
-rw-r--r--webapi/holodex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapi/holodex.py b/webapi/holodex.py
index 2b92305..7c2bcd5 100644
--- a/webapi/holodex.py
+++ b/webapi/holodex.py
@@ -1,7 +1,7 @@
from webapi.web_api import WebAPI
from typing import Iterable
-
+EXCLUSION_OVERRIDE = ["UCXDytlJU6RL8D68VrPZGyIA"]
class HolodexAPI(WebAPI):
"""
Class for interacting with the Holodex API
@@ -34,7 +34,7 @@ class HolodexAPI(WebAPI):
additional_data = self.get_additional_data(channel["id"])
channel["view_count"] = additional_data[0]
channel["description"] = additional_data[1]
- if channel["inactive"]:
+ if channel["inactive"] and channel["id"] not in EXCLUSION_OVERRIDE:
self._inactive_channels.append(channel["id"])
continue
active_channels.append(channel)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage