Converted API functions to Zend Framework. Converted pypo to use

the new Zendified URLs.  Fixed bugs in the daemontool scripts.

The installed scheduler is still not working at this point, but
getting close.
This commit is contained in:
paul.baranowski 2010-12-09 18:44:47 -05:00
parent 38bc0de9a2
commit 84c2a3bceb
13 changed files with 126 additions and 29 deletions

View file

@ -251,7 +251,7 @@ class CampcasterApiClient(ApiClientInterface):
logger = logging.getLogger()
try:
src = src + "&api_key=" + self.config["api_key"]
src = src + "/api_key/" + self.config["api_key"]
# check if file exists already before downloading again
filename, headers = urllib.urlretrieve(src, dst)
@ -269,7 +269,7 @@ class CampcasterApiClient(ApiClientInterface):
schedule_id = playlist["schedule_id"]
url = self.config["base_url"] + self.config["api_base"] + self.config["update_item_url"]
url = url.replace("%%schedule_id%%", str(schedule_id))
url += "&api_key=" + self.config["api_key"]
url = url.replace("%%api_key%%", self.config["api_key"])
logger.debug(url)
try: