Merge pull request #634 from feross/dc/fix
Make posters from jpeg files
This commit is contained in:
commit
ae28e34fd5
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ function torrentPoster (torrent, cb) {
|
|||
if (videoFile) return torrentPosterFromVideo(videoFile, torrent, cb)
|
||||
|
||||
// Third, try to use the largest image file
|
||||
var imgFile = getLargestFileByExtension(torrent, ['.gif', '.jpg', '.png'])
|
||||
var imgFile = getLargestFileByExtension(torrent, ['.gif', '.jpg', '.jpeg', '.png'])
|
||||
if (imgFile) return torrentPosterFromImage(imgFile, torrent, cb)
|
||||
|
||||
// TODO: generate a waveform from the largest sound file
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue