From 50d783db0c4145386232ee0164f301c33f184d60 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 28 Sep 2015 10:32:55 +0200 Subject: [PATCH] prepare audio transcode --- app/records/models.py | 7 +++++++ app/records/static/css/dig2.css | 1 + app/templates/index.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) 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 %}
-- 2.39.5