diff --git a/get-info.js b/get-info.js index 31819d55..75a4b204 100644 --- a/get-info.js +++ b/get-info.js @@ -372,7 +372,7 @@ exports.getMedia = function(id, type, callback) { "us": "Ustream.tv - ", "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); break; case "rt": @@ -381,7 +381,7 @@ exports.getMedia = function(id, type, callback) { "rt": "Livestream", "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); break; default: diff --git a/playlist.js b/playlist.js index c69455d4..0d4c4399 100644 --- a/playlist.js +++ b/playlist.js @@ -47,6 +47,7 @@ function Playlist(chan) { chan.sendAll("changeMedia", m.fullupdate()); }); this.on("remove", function(item) { + chan.broadcastPlaylistMeta(); chan.sendAll("delete", { uid: item.uid });