From 00b012b1dba591d885295246d8895cecfdd2fba3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 10 May 2014 00:49:12 -0700 Subject: [PATCH] prefer vorbis over mp3 --- src/Linkification/Linkify.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 5001307e0..180f98ed0 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -304,8 +304,8 @@ Linkify = el.firstChild.href = a.dataset.href el.firstChild.firstChild.src = "https://mediacru.sh/#{file.file}" when 'audio/mpeg', 'audio/ogg' - el.innerHTML = '' - for ext, i in ['mp3', 'ogg'] + el.innerHTML = '' + for ext, i in ['ogg', 'mp3'] el.firstChild.children[i].src = "https://mediacru.sh/#{a.dataset.uid}.#{ext}" else el.textContent = "ERROR: No valid filetype."