Permalink
Browse files

Fix null check for youtube livestream check

  • Loading branch information...
1 parent a624f45 commit e8d39850c5d35189342eb60d8c5ee88acd79234e @calzoneman calzoneman committed Nov 30, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/channel/playlist.js
View
@@ -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"
},
@@ -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;
}

0 comments on commit e8d3985

Please sign in to comment.