mirror of
https://github.com/captn3m0/youtube-cue.git
synced 2024-09-13 13:47:40 +00:00
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,
|
||||
forceTimestamps,
|
||||
forceDurations,
|
||||
length: Number(info.videoDetails.lengthSeconds)
|
||||
length: Number(info.videoDetails.lengthSeconds),
|
||||
});
|
||||
generate({ tracks, artist, audioFile, album }, output_file);
|
||||
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
|
||||
if (_options.length) return (e.start.calc < _options.length);
|
||||
if (_options.length) return e.start.calc < _options.length;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
export function parse(
|
||||
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
Block a user