Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no need to use xtend #262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}