initial commit

This commit is contained in:
clujin
2018-10-06 18:59:03 -07:00
parent 11b42e58c1
commit bb4eb523fe

View File

@@ -110,6 +110,8 @@ function scoreAudioCoverFile (imgFile) {
function torrentPosterFromAudio (torrent, cb) {
const imageFiles = filterOnExtension(torrent, mediaExtensions.image)
if (!imageFiles.length) return cb(new Error('Generated poster contains no files'));
const bestCover = imageFiles.map(file => {
return {
file: file,