]> git.parisson.com Git - diggersdigest.git/commitdiff
prepare audio transcode
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 28 Sep 2015 08:32:55 +0000 (10:32 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 28 Sep 2015 08:32:55 +0000 (10:32 +0200)
app/records/models.py
app/records/static/css/dig2.css
app/templates/index.html

index 0c92ccb2fde885dcad7344a5a361bb591b5614e4..5cccc4f592996c1a82ff35c789d426b75ae7c7da 100644 (file)
@@ -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",
index 60317c8918602d1419e2cc4661478807ea97319d..b2b322743734f2fe98438950545ae58befa9736d 100644 (file)
@@ -11,6 +11,7 @@
 body {
     padding-top: 182px;
     background-color: white;
+    /*font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;*/
 }
 
 hr {
index 7442bb64183a5d94c6896ba4aeba05fef96fc515..d59e64ebca9f35a67c6e2816a1a1b331d9e96deb 100644 (file)
@@ -43,7 +43,7 @@
 <div class="col-xs-6 col-md-6"><!-- Latest Releases -->
 {% shop_recent_products 9 as recent_products %}
 {% if recent_products %}
-<h2><span class="bg-white">{% trans "Latest Releases" %}</span></h2>
+<h2><span class="bg-white">{% trans "New arrivals" %}</span></h2>
 <div class="row">
   {% for product in recent_products %}
     <div class="col-xs-4 col-md-4 product-thumb slim_margins">