문제

I am looking to strip out ID3v1, ID3v2.x tags from an .mp3 file using C#. I would rather not implement it myself - but use something tried and tested.

TagLibSharp looks really good for creating tags - but how could it be used to remove them? If there's any other library more suited to this I'd use it.

도움이 되었습니까?

해결책

Use the TagLibSharp RemoveTags() method.

file.RemoveTags(tagtypes);

where tagtypes is a TagType bitmask for the tags you want to remove. For Id3v1 and Id3v2, try

file.RemoveTags(TagTypes.Id3v1 && TagTypes.Id3v2);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top