From: Guillaume Pellerin Date: Mon, 28 Sep 2015 08:32:55 +0000 (+0200) Subject: prepare audio transcode X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=50d783db0c4145386232ee0164f301c33f184d60;p=diggersdigest.git prepare audio transcode --- diff --git a/app/records/models.py b/app/records/models.py index 0c92ccb..5cccc4f 100644 --- a/app/records/models.py +++ b/app/records/models.py @@ -275,6 +275,13 @@ class Record(models.Model): candidates.append(os.path.join(root, filename)) return candidates + def get_audio(self, mimetype): + # transcodes audio with Timeside if another format is needed + if self.audio_file: + return self.audio_file + else: + #TODO: TS routine + return '' class Podcast(BlogPost): audio = FileField(verbose_name=_("Audio File"), max_length=200, format="Audio", diff --git a/app/records/static/css/dig2.css b/app/records/static/css/dig2.css index 60317c8..b2b3227 100644 --- a/app/records/static/css/dig2.css +++ b/app/records/static/css/dig2.css @@ -11,6 +11,7 @@ body { padding-top: 182px; background-color: white; + /*font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;*/ } hr { diff --git a/app/templates/index.html b/app/templates/index.html index 7442bb6..d59e64e 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -43,7 +43,7 @@
{% shop_recent_products 9 as recent_products %} {% if recent_products %} -

{% trans "Latest Releases" %}

+

{% trans "New arrivals" %}

{% for product in recent_products %}