Prettier fixes
Diff
index.js | 2 +-
src/parser.js | 13 ++++++++++---
2 files changed, 10 insertions(+), 5 deletions(-)
@@ -74,7 +74,7 @@
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 dropInvalid = function(e) {
var dropInvalid = function (e) {
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 @@
}
}
return result.map(parseTitle).map(parseArtist).map(addTrack).map(addEnd).filter(dropInvalid);
return result
.map(parseTitle)
.map(parseArtist)
.map(addTrack)
.map(addEnd)
.filter(dropInvalid);
}