Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huanghaiyang/nodejs-id3-reader

mp3 id3 标签检测
https://github.com/huanghaiyang/nodejs-id3-reader

Last synced: 6 days ago
JSON representation

mp3 id3 标签检测

Awesome Lists containing this project

README

        

# nodejs-id3-reader
mp3文件id3标签检测工具,
fork from: JavaScript-ID3-Reader

##使用方法
* 安装

npm install nodejs-id3-reader


* 引用

var id3Reader = require("nodejs-id3-reader");

###API
* 根据MP3文件路径读取文件中的标签

id3Reader.localTags(localFilePath , callback , options);


* 读取的标签会保存在id3Reader对象内部,方便下次读取,用来作为缓存使用,读取文件的所有标签可通过

id3Reader.getAllTags(localFilePath);


* 获取指定标签

id3Reader.getTag(localFilePath , tags);


* id3Reader对象内部保存的标签结构如下


{
'E:/Immortals.mp3':{
title : 'Fall Out Boy - Immortals (End Credit Version) ["From "Big Hero 6”]',
ablum : 'Big Hero 6',
aitist : 'Fall Out Boy',
...
},
...
}

* 清除已经读取过的标签

clearTags(localFilePath);


* 清除所有标签

clearAll();