Add special TXXX handling for ID3v2

This commit is contained in:
Vanilagy
2026-04-24 19:42:15 +02:00
parent 9969b92d51
commit 97f6b35cda
4 changed files with 82 additions and 11 deletions
+12
View File
@@ -338,6 +338,12 @@ test('Read and write metadata, MP3', async () => {
...songMetadata,
raw: {
TXXY: 'ID3v2 goated',
TXXZ: '鱼',
TXXX: {
foo: 'bar',
baz: 'qux',
你: '好',
},
},
});
@@ -377,6 +383,12 @@ test('Read and write metadata, MP3', async () => {
expect(readTags.raw!['TIT2']).toBe(songMetadata.title);
expect(readTags.raw!['APIC']).instanceOf(Uint8Array);
expect(readTags.raw!['TXXY']).toBe('ID3v2 goated');
expect(readTags.raw!['TXXZ']).toBe('鱼');
expect(readTags.raw!['TXXX']).toEqual({
foo: 'bar',
baz: 'qux',
你: '好',
});
});
test('Read and write metadata, Ogg', async () => {