diff --git a/config.toml.example b/config.toml.example index ecc5a5a..317fffc 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,6 +1,6 @@ interval = 300 rotate = true -api_key = "" +e621_api_key = "" source = "konachan" tags = [ "rating:s" diff --git a/konawall/sources/e621.py b/konawall/sources/e621.py index 46523c7..c7d9d24 100644 --- a/konawall/sources/e621.py +++ b/konawall/sources/e621.py @@ -13,7 +13,7 @@ Turn a list of tags and a count into a list of URLs to download from :returns: A list of URLs to download from """ def request_posts(count: int, tags: list, config) -> list: - api_key = config["api_key"] + api_key = config["e621_api_key"] logging.debug(f"request_posts() called with count={count}, tags=[{', '.join(tags)}]") # Make sure we get a different result every time by using "order:random" as a tag if "order:random" not in tags: