Prevent negative ignore when seeking APEv2 header in ID3v1Parser
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user