diff --git a/package.json b/package.json index 788437f4..324fc715 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.63.0", + "version": "3.63.1", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 257042b2..1f8c14df 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -935,6 +935,11 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) { return; } + if (isNaN(media.seconds)) { + LOGGER.warn("Detected NaN duration for %j", media); + return qfail("Internal error: could not determine media duration"); + } + if (data.maxlength > 0 && media.seconds > data.maxlength) { return qfail("Video exceeds the maximum length set by the channel admin: " + data.maxlength + " seconds");