From fe60b3f8a5e4e9a7f4a5f1fce7fb30a8c9f07976 Mon Sep 17 00:00:00 2001 From: profitroll Date: Mon, 24 Apr 2023 12:44:10 +0200 Subject: [PATCH] Changed album config path --- poster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poster.py b/poster.py index f58b6eb..9299740 100644 --- a/poster.py +++ b/poster.py @@ -216,7 +216,7 @@ async def main(): ( await ( await http_session.get( - f'{configGet("address", "posting", "api")}/albums?q={configGet("queue", "posting", "api", "albums")}', + f'{configGet("address", "posting", "api")}/albums?q={configGet("album", "posting", "api")}', headers={"Authorization": f"Bearer {token}"}, ) ).json() @@ -227,7 +227,7 @@ async def main(): logWrite("Media album does not exist on API server. Trying to create it...") try: await http_session.post( - f'{configGet("address", "posting", "api")}/albums?name={configGet("queue", "posting", "api", "albums")}&title={configGet("queue", "posting", "api", "albums")}', + f'{configGet("address", "posting", "api")}/albums?name={configGet("album", "posting", "api")}&title={configGet("album", "posting", "api")}', headers={"Authorization": f"Bearer {token}"}, ) logWrite("Created media album on API server.")