diff --git a/index.js b/index.js index b5537be..8938aab 100755 --- a/index.js +++ b/index.js @@ -7,7 +7,6 @@ var chalk = require('chalk'); var keypress = require('keypress'); var ui = require('playerui')(); var circulate = require('array-loop'); -var xtend = require('xtend'); var shuffle = require('array-shuffle'); var unformatTime = require('./utils/unformat-time'); var debug = require('debug')('castnow'); @@ -464,7 +463,7 @@ player.use(function(ctx, next) { if (ctx.mode !== 'launch') return next(); if (ctx.options.shuffle) ctx.options.playlist = shuffle(ctx.options.playlist); - ctx.options = xtend(ctx.options, ctx.options.playlist[0]); + ctx.options = Object.assign({}, ctx.options, ctx.options.playlist[0]); var file = ctx.options.playlist.shift(); if (ctx.options.loop) ctx.options.playlist.push(file); diff --git a/package.json b/package.json index 9751a26..f25f2fe 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "srt2vtt": "^1.3.1", "stream-transcoder": "0.0.5", "xml2js": "^0.4.4", - "xspfr": "^0.3.1", - "xtend": "^4.0.0" + "xspfr": "^0.3.1" } }