mono / taglib-sharp

Library for reading and writing metadata in media files
GNU Lesser General Public License v2.1
1.27k stars 312 forks source link

Files not writeable by Taglibsharp but writeable by other tools #332

Open OrangeDogSoftware opened 1 year ago

OrangeDogSoftware commented 1 year ago

Hello,

I use taglibsharp to edit video metadata. In my collection, a lot of videos are seen by taglibsharp as not writeable but they are in other tools (I can manage to edit metadata via the windows explorer for example).

What makes a file considered as non writeable by Taglibsharp ?

How to fix the file in case it's really not writeable (which I doubt).

Thanks

Starwer commented 1 year ago

TagLibSharp considers a file as non writeable if it thinks the file is possibly corrupted. It makes sense, because it is then not sure how to write data back or whether trying to write tags will totaly corrupt (even more) the file, rendering it potentially unreadable. You can see the reason of the possible corruption in property: File.CorruptionReasons.