initial commit
This commit is contained in:
@@ -110,6 +110,8 @@ function scoreAudioCoverFile (imgFile) {
|
|||||||
function torrentPosterFromAudio (torrent, cb) {
|
function torrentPosterFromAudio (torrent, cb) {
|
||||||
const imageFiles = filterOnExtension(torrent, mediaExtensions.image)
|
const imageFiles = filterOnExtension(torrent, mediaExtensions.image)
|
||||||
|
|
||||||
|
if (!imageFiles.length) return cb(new Error('Generated poster contains no files'));
|
||||||
|
|
||||||
const bestCover = imageFiles.map(file => {
|
const bestCover = imageFiles.map(file => {
|
||||||
return {
|
return {
|
||||||
file: file,
|
file: file,
|
||||||
|
|||||||
Reference in New Issue
Block a user