mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
feat: e621 config change
This commit is contained in:
parent
8e4f5895b0
commit
e426a3ee4e
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
interval = 300
|
interval = 300
|
||||||
rotate = true
|
rotate = true
|
||||||
api_key = ""
|
e621_api_key = ""
|
||||||
source = "konachan"
|
source = "konachan"
|
||||||
tags = [
|
tags = [
|
||||||
"rating:s"
|
"rating:s"
|
||||||
|
|
|
||||||
|
|
@ -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
|
:returns: A list of URLs to download from
|
||||||
"""
|
"""
|
||||||
def request_posts(count: int, tags: list, config) -> list:
|
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)}]")
|
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
|
# Make sure we get a different result every time by using "order:random" as a tag
|
||||||
if "order:random" not in tags:
|
if "order:random" not in tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue