CC-2919: Media Monitor: recorded show doesn't show on library after

recording is done

- fixed
- extra fix: Airtime wasn't updating file when updating metadata

Conflicts:

	airtime_mvc/application/controllers/LibraryController.php
This commit is contained in:
James 2011-10-03 14:17:56 -04:00
parent bf15b4cf0d
commit dcda08e17a
4 changed files with 23 additions and 4 deletions

View file

@ -424,7 +424,7 @@ class AirTimeApiClient(ApiClientInterface):
elapsed = (time.time() - start)
logger.info("time taken to get response %s", elapsed)
if(is_record):
if("error" not in response and is_record):
url = "http://%s:%s/%s/%s" % (self.config["base_url"], str(self.config["base_port"]), self.config["api_base"], self.config["upload_recorded"])
url = url.replace("%%fileid%%", str(response[u'id']))
url = url.replace("%%showinstanceid%%", str(md['MDATA_KEY_TRACKNUMBER']))