mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-01 14:18:01 +00:00
Fixed default images
This commit is contained in:
@@ -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"))))
|
||||
|
||||
Reference in New Issue
Block a user