fossasia/loklak_webclient

View on GitHub
iframely/plugins/domains/globalnews.ca.js

Summary

Maintainability
A
3 hrs
Test Coverage
module.exports = {

    re: [
        /^https?:\/\/globalnews\.ca\/video\/(\d+)\//i
    ],

    mixins: ["*"],

    getLink: function(urlMatch) {

        return {
                href: "http://globalnews.ca/video/embed/" + urlMatch[1] + "/",
                type: CONFIG.T.text_html,
                rel: [CONFIG.R.player, CONFIG.R.html5],
                "aspect-ratio": 670 / 437
            };
    },

    tests: [
        "http://globalnews.ca/video/1915279/red-wings-forward-drew-miller-gets-slashed-in-face-on-ice"
    ]
};