Fix live media
This commit is contained in:
parent
dce341e42b
commit
6e4f27d618
|
@ -372,7 +372,7 @@ exports.getMedia = function(id, type, callback) {
|
||||||
"us": "Ustream.tv - ",
|
"us": "Ustream.tv - ",
|
||||||
"jw": "JWPlayer Stream - "
|
"jw": "JWPlayer Stream - "
|
||||||
};
|
};
|
||||||
var media = new Media(data.id, prefix[data.type] + data.id, "--:--", data.type);
|
var media = new Media(id, prefix[type] + id, "--:--", type);
|
||||||
callback(false, media);
|
callback(false, media);
|
||||||
break;
|
break;
|
||||||
case "rt":
|
case "rt":
|
||||||
|
@ -381,7 +381,7 @@ exports.getMedia = function(id, type, callback) {
|
||||||
"rt": "Livestream",
|
"rt": "Livestream",
|
||||||
"im": "Imgur Album"
|
"im": "Imgur Album"
|
||||||
};
|
};
|
||||||
var media = new Media(data.id, names[data.type], "--:--", data.type);
|
var media = new Media(id, names[type], "--:--", type);
|
||||||
callback(false, media);
|
callback(false, media);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -47,6 +47,7 @@ function Playlist(chan) {
|
||||||
chan.sendAll("changeMedia", m.fullupdate());
|
chan.sendAll("changeMedia", m.fullupdate());
|
||||||
});
|
});
|
||||||
this.on("remove", function(item) {
|
this.on("remove", function(item) {
|
||||||
|
chan.broadcastPlaylistMeta();
|
||||||
chan.sendAll("delete", {
|
chan.sendAll("delete", {
|
||||||
uid: item.uid
|
uid: item.uid
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue