Fix ustream for channels with /channel/foo syntax; ustream wtf are you doing

This commit is contained in:
calzoneman 2013-09-17 13:19:33 -05:00
parent 3f65a69f0e
commit 6aae146f8b
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Sep 17 13:16 2013 CDT
* lib/get-info.js: Fix ustream for channels that have /channel/ in the
path.
Fri Sep 13 10:10 2013 CDT
* www/reset.html: Fix data.js dependency
* lib/api.js: Fix ActionLog trying to record wrong data. How long has

View File

@ -515,7 +515,12 @@ module.exports = function (Server) {
/* ustream.tv */
us: function (id, callback) {
var m = id.match(/([\w-]+)/);
// 2013-09-17
// They couldn't fucking decide whether channels should
// be at http://www.ustream.tv/channel/foo or just
// http://www.ustream.tv/foo so they do both.
// [](/cleese)
var m = id.match(/([^\?&#]+)|(channel\/[^\?&#]+)/);
if (m) {
id = m[1];
} else {