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
parent 9a7dac5161
commit cc8608f495
+2 -2
View File
@@ -135,8 +135,8 @@ export class ID3v1Parser extends BasicParser {
return;
}
if (this.apeHeader) {
this.tokenizer.ignore(this.apeHeader.offset - this.tokenizer.position);
if (this.apeHeader && this.tokenizer.supportsRandomAccess()) {
(this.tokenizer as IRandomAccessTokenizer).setPosition(this.apeHeader.offset);
const apeParser = new APEv2Parser(this.metadata, this.tokenizer, this.options);
await apeParser.parseTags(this.apeHeader.footer);
}