File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " fileutils-cli" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " A collection of powerful command line file utilities" ,
55 "main" : " src/bin.js" ,
66 "preferGlobal" : true ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports.FileData = class FileData {
2424 async get ( ) {
2525 let exifData = getExifData ( this . parsedPath . dir + '/' + this . parsedPath . base ) ;
2626 let tags = { } ;
27- if ( ! this . stats . isDirectory ( ) ) {
27+ if ( ! this . stats . isDirectory ( ) && this . parsedPath . ext . toLowerCase ( ) === '.mp3' ) {
2828 const buffer = await fs . readFile ( this . parsedPath . dir + '/' + this . parsedPath . base ) ;
2929 const mp3tag = new MP3Tag ( buffer , false ) ;
3030 await mp3tag . read ( ) ;
You can’t perform that action at this time.
0 commit comments