mirror of https://github.com/calzoneman/sync.git
Fix ustream for channels with /channel/foo syntax; ustream wtf are you doing
This commit is contained in:
parent
3f65a69f0e
commit
6aae146f8b
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue