Prettier fixes

This commit is contained in:
Nemo 2022-08-26 18:36:33 +05:30
parent 5ba24e95db
commit 8a570f74ad
2 changed files with 10 additions and 5 deletions

View File

@ -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`);

View File

@ -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);
} }