diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index 6ec5b6819..f899a5b83 100755 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -595,7 +595,7 @@ class AirTimeApiClient(ApiClientInterface): url = url.replace("%%api_key%%", self.config["api_key"]) url = url.replace("%%stream_id%%", stream_id) - url = url.replace("%%boot_time%%", time) + url = url.replace("%%boot_time%%", time) logger.debug(url) req = urllib2.Request(url) response = urllib2.urlopen(req).read() diff --git a/python_apps/pypo/pypofetch.py b/python_apps/pypo/pypofetch.py index 9c87eb94b..f9dbaffe9 100644 --- a/python_apps/pypo/pypofetch.py +++ b/python_apps/pypo/pypofetch.py @@ -294,12 +294,7 @@ class PypoFetch(Thread): try: os.mkdir(self.cache_dir + str(pkey)) except Exception, e: - logger.error(e) - - #June 13, 2011: Commented this block out since we are not currently setting this to '1' - #on the server side. Currently using a different method to detect if already played - Martin - #if int(playlist['played']) == 1: - # logger.info("playlist %s already played / sent to liquidsoap, so will ignore it", pkey) + logger.warning(e) ls_playlist = self.handle_media_file(playlist, pkey, bootstrapping)