Prettier fixes
This commit is contained in:
parent
5ba24e95db
commit
8a570f74ad
2
index.js
2
index.js
|
@ -74,7 +74,7 @@ if (argv.version) {
|
||||||
artist,
|
artist,
|
||||||
forceTimestamps,
|
forceTimestamps,
|
||||||
forceDurations,
|
forceDurations,
|
||||||
length: Number(info.videoDetails.lengthSeconds)
|
length: Number(info.videoDetails.lengthSeconds),
|
||||||
});
|
});
|
||||||
generate({ tracks, artist, audioFile, album }, output_file);
|
generate({ tracks, artist, audioFile, album }, output_file);
|
||||||
console.log(`"${output_file}" saved`);
|
console.log(`"${output_file}" saved`);
|
||||||
|
|
|
@ -153,11 +153,11 @@ var fixDurations = function (list) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var dropInvalid = function(e) {
|
var dropInvalid = function (e) {
|
||||||
// All tracks should start before the closing time
|
// All tracks should start before the closing time
|
||||||
if (_options.length) return (e.start.calc < _options.length);
|
if (_options.length) return e.start.calc < _options.length;
|
||||||
return true;
|
return true;
|
||||||
}
|
};
|
||||||
|
|
||||||
export function parse(
|
export function parse(
|
||||||
text,
|
text,
|
||||||
|
@ -190,5 +190,10 @@ export function parse(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result.map(parseTitle).map(parseArtist).map(addTrack).map(addEnd).filter(dropInvalid);
|
return result
|
||||||
|
.map(parseTitle)
|
||||||
|
.map(parseArtist)
|
||||||
|
.map(addTrack)
|
||||||
|
.map(addEnd)
|
||||||
|
.filter(dropInvalid);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue