mirror of https://github.com/calzoneman/sync.git
Fix null check for youtube livestream check
This commit is contained in:
parent
a624f45493
commit
e8d39850c5
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.24.2",
|
"version": "3.24.3",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"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
|
// In the future, the media cache should be decoupled from
|
||||||
// the library and this will no longer be an issue, but for now
|
// the library and this will no longer be an issue, but for now
|
||||||
// treat 0-length yt library entries as non-existent.
|
// 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"
|
data.type = "yt"; // Kludge -- library queue has type: "lib"
|
||||||
item = null;
|
item = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue