1
0
mirror of synced 2026-05-22 14:43:19 +00:00

Prevent negative ignore when seeking APEv2 header in ID3v1Parser

This commit is contained in:
Borewit
2026-03-26 17:01:21 +01:00
committed by Borewit
parent 9a7dac5161
commit 660432dc38
+2 -2
View File
@@ -135,8 +135,8 @@ export class ID3v1Parser extends BasicParser {
return; return;
} }
if (this.apeHeader) { if (this.apeHeader && this.tokenizer.supportsRandomAccess()) {
this.tokenizer.ignore(this.apeHeader.offset - this.tokenizer.position); (this.tokenizer as IRandomAccessTokenizer).setPosition(this.apeHeader.offset);
const apeParser = new APEv2Parser(this.metadata, this.tokenizer, this.options); const apeParser = new APEv2Parser(this.metadata, this.tokenizer, this.options);
await apeParser.parseTags(this.apeHeader.footer); await apeParser.parseTags(this.apeHeader.footer);
} }