If there’s no codec, use the extension.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 1 Aug 2012 04:39:06 +0000 (06:39 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 1 Aug 2012 04:39:06 +0000 (06:39 +0200)
src/main/resources/templates/track

index aecf4b5..d0e8bc1 100644 (file)
@@ -30,7 +30,7 @@
 
 <%foreach track.derivatives derivative>
 
-       <h2><a href="download?id=<%derivative.id|html>"><%derivative.properties.audio/codec.shortName|html></a></h2>
+       <h2><a href="download?id=<%derivative.id|html>"><%ifnull derivative.properties.audio/codec><%derivative.properties.file/extension.toUpperCase><%else><%derivative.properties.audio/codec.shortName|html><%/if></a></h2>
 
        <div class="size"><%derivative.size|concise|html>B</div>