Fix to read direct / full path & 'readSauce' option of art

This commit is contained in:
Bryan Ashby 2019-05-13 21:27:59 -06:00
parent 509831cc0c
commit b0d081ad04
No known key found for this signature in database
GPG key ID: B49EB437951D2542
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ function getArt(name, options, cb) {
// If an extension is provided, just read the file now
if('' !== ext) {
const directPath = paths.join(options.basePath, name);
const directPath = paths.isAbsolute(name) ? name : paths.join(options.basePath, name);
return getArtFromPath(directPath, options, cb);
}