From c27b1c5a5bb2595dca7166c6fb169bdf5c51f2c1 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 24 Feb 2023 13:25:57 -0500 Subject: [PATCH] Temporarily disabled album creation on start --- poster.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poster.py b/poster.py index 6e94d9d..faab802 100644 --- a/poster.py +++ b/poster.py @@ -180,10 +180,10 @@ if __name__ == "__main__": if configGet("post", "mode"): scheduler.start() - if configGet("api_based", "mode"): - token = authorize() - if len(get(f'{configGet("address", "posting", "api")}/albums?q={configGet("queue", "posting", "api", "albums")}', headers={"Authorization": f"Bearer {token}"}).json()["results"]) == 0: - post(f'{configGet("address", "posting", "api")}/albums?name={configGet("queue", "posting", "api", "albums")}&title={configGet("queue", "posting", "api", "albums")}', headers={"Authorization": f"Bearer {token}"}) + #if configGet("api_based", "mode"): + # token = await authorize() + # if len(get(f'{configGet("address", "posting", "api")}/albums?q={configGet("queue", "posting", "api", "albums")}', headers={"Authorization": f"Bearer {token}"}).json()["results"]) == 0: + # post(f'{configGet("address", "posting", "api")}/albums?name={configGet("queue", "posting", "api", "albums")}&title={configGet("queue", "posting", "api", "albums")}', headers={"Authorization": f"Bearer {token}"}) idle()