Fix ustream

This commit is contained in:
Calvin Montgomery 2018-01-14 15:02:15 -08:00
parent fec1372e4e
commit d706bf63b1
6 changed files with 11 additions and 57 deletions

View file

@ -3226,6 +3226,13 @@ function startQueueSpinner(data) {
}
function stopQueueSpinner(data) {
// TODO: this is a temp hack, need to replace media ID check with
// a passthrough request ID (since media ID from API is not necessarily
// the same as the URL "ID" from the user)
if (data.type === "us") {
data = { id: data.title.match(/Ustream.tv - (.*)/)[1] };
}
var shouldRemove = (data !== null &&
typeof data === 'object' &&
$("#queueprogress").data("queue-id") === data.id);