Merge pull request #1345 from jooola/fix/api_client_notify_liquidsoap_status

Fix bad argument name, use kwargs
This commit is contained in:
Kyle Robbertze 2021-09-14 04:56:27 +00:00 committed by GitHub
commit 774ead8696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -429,12 +429,14 @@ class AirtimeApiClient(object):
def notify_liquidsoap_status(self, msg, stream_id, time):
logger = self.logger
try:
post_data = {"msg_post": msg}
# encoded_msg is no longer used server_side!!
encoded_msg = urllib.parse.quote("dummy")
self.services.update_liquidsoap_status.req(
post_data, msg=encoded_msg, stream_id=stream_id, boot_time=time
_post_data={"msg_post": msg},
msg=encoded_msg,
stream_id=stream_id,
boot_time=time,
).retry(5)
except Exception as e:
self.logger.exception(e)