-remove some commented out code

This commit is contained in:
Martin Konecny 2011-12-02 16:57:18 -05:00
parent 5a4b4ba421
commit f0342e9329
2 changed files with 2 additions and 7 deletions

View File

@ -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()

View File

@ -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)