initial commit
This commit is contained in:
parent
11b42e58c1
commit
bb4eb523fe
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue