music-metadata
Version:
Music metadata parser for Node.js, supporting virtual any audio and tag format.
35 lines (34 loc) • 1.05 kB
JavaScript
import { CommonTagMapper } from '../common/GenericTagMapper.js';
/**
* RIFF Info Tags; part of the EXIF 2.3
* Ref: http://owl.phy.queensu.ca/~phil/exiftool/TagNames/RIFF.html#Info
*/
export const riffInfoTagMap = {
IART: 'artist', // Artist
ICRD: 'date', // DateCreated
INAM: 'title', // Title
TITL: 'title',
IPRD: 'album', // Product
ITRK: 'track',
IPRT: 'track', // Additional tag for track index
COMM: 'comment', // Comments
ICMT: 'comment', // Country
ICNT: 'releasecountry',
GNRE: 'genre', // Genre
IWRI: 'writer', // WrittenBy
RATE: 'rating',
YEAR: 'year',
ISFT: 'encodedby', // Software
CODE: 'encodedby', // EncodedBy
TURL: 'website', // URL,
IGNR: 'genre', // Genre
IENG: 'engineer', // Engineer
ITCH: 'technician', // Technician
IMED: 'media', // Original Media
IRPD: 'album' // Product, where the file was intended for
};
export class RiffInfoTagMapper extends CommonTagMapper {
constructor() {
super(['exif'], riffInfoTagMap);
}
}