Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 标签检测
- Host: GitHub
- URL: https://github.com/huanghaiyang/nodejs-id3-reader
- Owner: huanghaiyang
- Created: 2015-06-03T07:16:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-06T10:57:08.000Z (over 9 years ago)
- Last Synced: 2024-10-14T01:12:59.939Z (about 1 month ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();