iframely/plugins/domains/sverigesradio.se.js
module.exports = {
mixins: [
"*"
],
// The problem is some urls not embedable. Don't know how to detect that.
getLink: function(url, twitter) {
if (!twitter.player) {return;}
return {
href: '//sverigesradio.se/embed?url=' + encodeURIComponent(url),
type: CONFIG.T.text_html,
rel: [CONFIG.R.player, CONFIG.R.html5],
'min-width': 210,
height: 150
};
},
tests: [
"http://sverigesradio.se/sida/artikel.aspx?programid=406&artikel=5848335",
"http://sverigesradio.se/sida/avsnitt/554369?programid=412"
]
};