Added FEED_TYPE config

This commit is contained in:
2021-12-11 00:19:07 +01:00
parent b665fd835d
commit e609411897
3 changed files with 7 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ class SoundSender(AbcSender):
"application/json")
}
r = requests.post(urljoin(config.API_URL, "/input"), files=files)
r = requests.post(urljoin(config.API_URL, config.FEED_TYPE), files=files)
logging.debug(f"Content: {r.content.decode()}")
logging.debug(f"Headers: {r.headers}")
r.raise_for_status()