changed notify_source_status to use RequestProvider
This commit is contained in:
parent
f8b5f1dce6
commit
81074f9c44
|
@ -600,13 +600,11 @@ class AirtimeApiClient(object):
|
||||||
logger.error("Exception: %s", e)
|
logger.error("Exception: %s", e)
|
||||||
|
|
||||||
def notify_source_status(self, sourcename, status):
|
def notify_source_status(self, sourcename, status):
|
||||||
logger = self.logger
|
|
||||||
try:
|
try:
|
||||||
url = self.construct_url("update_source_status")
|
logger = self.logger
|
||||||
url = url.replace("%%sourcename%%", sourcename)
|
return self.services.update_source_status(sourcename=sourcename,
|
||||||
url = url.replace("%%status%%", status)
|
status=status)
|
||||||
|
#self.get_response_from_server(url, attempts = 5)
|
||||||
self.get_response_from_server(url, attempts = 5)
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error("Exception: %s", e)
|
logger.error("Exception: %s", e)
|
||||||
|
|
||||||
|
@ -620,7 +618,6 @@ class AirtimeApiClient(object):
|
||||||
calculated. This list of files is downloaded into a file and the path
|
calculated. This list of files is downloaded into a file and the path
|
||||||
to this file is the return value.
|
to this file is the return value.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#http://localhost/api/get-files-without-replay-gain/dir_id/1
|
#http://localhost/api/get-files-without-replay-gain/dir_id/1
|
||||||
return self.services.get_files_without_replay_gain_value()
|
return self.services.get_files_without_replay_gain_value()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue