dev #19
@ -216,7 +216,7 @@ async def main():
|
|||||||
(
|
(
|
||||||
await (
|
await (
|
||||||
await http_session.get(
|
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}"},
|
headers={"Authorization": f"Bearer {token}"},
|
||||||
)
|
)
|
||||||
).json()
|
).json()
|
||||||
@ -227,7 +227,7 @@ async def main():
|
|||||||
logWrite("Media album does not exist on API server. Trying to create it...")
|
logWrite("Media album does not exist on API server. Trying to create it...")
|
||||||
try:
|
try:
|
||||||
await http_session.post(
|
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}"},
|
headers={"Authorization": f"Bearer {token}"},
|
||||||
)
|
)
|
||||||
logWrite("Created media album on API server.")
|
logWrite("Created media album on API server.")
|
||||||
|
Reference in New Issue
Block a user