From e8d39850c5d35189342eb60d8c5ee88acd79234e Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Wed, 30 Nov 2016 09:24:28 -0800 Subject: [PATCH] Fix null check for youtube livestream check --- package.json | 2 +- src/channel/playlist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 80a3c44d..49d1d4b8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.24.2", + "version": "3.24.3", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 6dbee410..513873ee 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -475,7 +475,7 @@ PlaylistModule.prototype.queueStandard = function (user, data) { // In the future, the media cache should be decoupled from // the library and this will no longer be an issue, but for now // treat 0-length yt library entries as non-existent. - if (item.type === "yt" && item.seconds === 0) { + if (item !== null && item.type === "yt" && item.seconds === 0) { data.type = "yt"; // Kludge -- library queue has type: "lib" item = null; }