Permalink
Browse files

Merge pull request #11 from calzoneman/3.0

Fix null check for youtube livestream check
  • Loading branch information...
2 parents c4f6ebf + e8d3985 commit d1e3783df0f961fd2421659533d642110dd4ce3d @twiforce committed on GitHub Dec 7, 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 d1e3783

Please sign in to comment.