Fixed default images

This commit is contained in:
Fergal Moran
2015-06-09 20:37:15 +01:00
parent e74fb8d6eb
commit 9e0ddaa33f
2 changed files with 5 additions and 5 deletions

View File

@@ -177,7 +177,7 @@ class Mix(BaseModel):
except Exception, ex:
self.logger.error("Mix: error getting mix image %s" % ex.message)
return super(Mix, self).get_image_url(self.mix_image, settings.STATIC_URL + 'images/default-track-200.png')
return super(Mix, self).get_image_url(self.mix_image, settings.DEFAULT_TRACK_IMAGE)
def get_stream_url(self):
if self.archive_path in [None, '']:
@@ -191,7 +191,8 @@ class Mix(BaseModel):
download_name = smart_str('{0} - {1}.{2}'.format(settings.SITE_NAME, self.title, self.filetype))
return blob_name, download_name
# used for podcast xml
# used for podcast xmlo, allo.
We're back again'
def get_date_as_rfc822(self):
return rfc822.formatdate(
rfc822.mktime_tz(rfc822.parsedate_tz(self.upload_date.strftime("%a, %d %b %Y %H:%M:%S"))))