polyfloyd / rust-id3

A rust library for reading and writing ID3 metadata
MIT License
245 stars 47 forks source link

Parsing of mp3 files from Beatport fails: delimiter not found #80

Closed schaubes closed 2 years ago

schaubes commented 2 years ago

I just tested some mp3 songs from Beatport, but can't process any of them. On Tag::read_from_path() I get Error: Parsing: delimiter not found. I'm using v1.0.2, but had same issue with v0.6.4 a while ago. Didn't have problems with mp3's from other sources so far. Any help is much appreciated!

polyfloyd commented 2 years ago

Could you please attach a file containing the problematic tag?

schaubes commented 2 years ago

As it is payed content I don't think I can. Is there another way to extract just the meta info to share?

polyfloyd commented 2 years ago

You could write a small program that uses id3::Tag::skip to get the offset of the MPEG data and dump everything that comes in front of it.

schaubes commented 2 years ago

Just had a look at it again. It turns out that re-saving the metadata via e.g. VLC Player (without any changes to the data) fixed the encoding. Everything works just fine now.