Fix #149 and a couple other issues

This commit is contained in:
calzoneman 2013-05-26 11:38:38 -04:00
parent a6af5a2440
commit 828b7e0381
3 changed files with 6 additions and 6 deletions

View file

@ -537,7 +537,7 @@ function parseYTPlaylist(url) {
}
function parseTwitch(url) {
var m = url.match(/twitch\.tv\/([a-zA-Z0-9]+)/);
var m = url.match(/twitch\.tv\/([^#\?\/]+)/);
if(m) {
return m[1];
}
@ -545,7 +545,7 @@ function parseTwitch(url) {
}
function parseJustinTV(url) {
var m = url.match(/justin\.tv\/([a-zA-Z0-9]+)/);
var m = url.match(/justin\.tv\/([^#\?\/]+)/);
if(m) {
return m[1];
}
@ -553,7 +553,7 @@ function parseJustinTV(url) {
}
function parseLivestream(url) {
var m = url.match(/livestream\.com\/([a-zA-Z0-9]+)/);
var m = url.match(/livestream\.com\/([^#\?\/]+)/);
if(m) {
return m[1];
}
@ -561,7 +561,7 @@ function parseLivestream(url) {
}
function parseUstream(url) {
var m = url.match(/ustream\.tv\/([a-zA-Z0-9-]+)/);
var m = url.match(/ustream\.tv\/([^#\?\/]+)/);
if(m) {
return m[1];
}