add Clyp embedding

This commit is contained in:
ccd0 2014-08-24 14:07:44 -07:00
parent 23290a5d6b
commit 7300414711

View File

@ -422,6 +422,15 @@ Linkify =
when 'nn' then "http://naenara.eu/loopvids/#{base}"
$.add el, $.el 'source', src: url
el
,
key: 'Clyp'
regExp: /^\w+:\/\/(?:www\.)?clyp\.it\/(\w+)/
style: ''
el: (a) ->
$.el 'audio',
controls: true
preload: 'auto'
src: "http://clyp.it/#{a.dataset.uid}.ogg"
,
# dummy entries: not implemented but included to prevent them being wrongly embedded as a subsequent type
key: 'Loopvid dummy'