forked from itteco/iframely
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cbsnews.com.js
27 lines (20 loc) · 859 Bytes
/
cbsnews.com.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
re: /^https?:\/\/www\.cbsnews\.com\/videos\/([^\/\?]+)\/?/i,
mixins: ["*"],
getLink: function(urlMatch) {
// http://www.cbsnews.com/embed/videos/jacob-wetterlings-mother-speaks-out-after-danny-heinrich-confesses-to-murder
return {
href: 'http://www.cbsnews.com/embed/videos/' + urlMatch[1],
type: CONFIG.T.text_html,
rel: [CONFIG.R.player, CONFIG.R.html5, CONFIG.R.autoplay],
'aspect-ratio': 640 / 360,
'max-width': 640
};
},
tests: [{
feed: 'http://www.cbsnews.com/latest/rss/video'
},
"http://www.cbsnews.com/videos/hurricane-katrina-photographer-new-orleans-on-road-to-recovery/",
"http://www.cbsnews.com/videos/jacob-wetterlings-mother-speaks-out-after-danny-heinrich-confesses-to-murder"
]
};