iframely/plugins/domains/nhl.com.js
module.exports = {
re: [
/https?:\/\/(?:www\.)?nhl\.com(\/\w+\/)video\/([a-zA-Z0-9\-]+\/t\-\d+\/c\-\d+)/i,
/https?:\/\/(?:www\.)?nhl\.com(\/)video\/([a-zA-Z0-9\-]+\/t\-\d+\/c\-\d+)/i
],
mixins: ["*"],
getLinks: function(urlMatch) {
return [{
href: "https://www.nhl.com" + urlMatch[1] + "video/embed/" + urlMatch[2] + "?autostart=false",
type: CONFIG.T.text_html,
rel: [CONFIG.R.player, CONFIG.R.html5],
"aspect-ratio": 540 / 310
}, {
href: "https://www.nhl.com" + urlMatch[1] + "video/embed/" + urlMatch[2] + "?autostart=true",
type: CONFIG.T.text_html,
rel: [CONFIG.R.player, CONFIG.R.html5, CONFIG.R.autoplay],
"aspect-ratio": 540 / 310
}]
},
tests: [
"https://www.nhl.com/blackhawks/video/whatsyourgoal-emilie/t-277443408/c-40739903",
"https://www.nhl.com/video/toews-ot-winner/t-277350912/c-40861003",
"https://www.nhl.com/video/niskanens-go-ahead-goal/t-277983160/c-40970503"
]
};