c# - Taglib sharp not editing rating -


i have encountered strange problem while using taglib sharp. changes rating of video file using code shown below.

        taglib.file file = taglib.file.create(fullfilepath);         taglib.tag tag = file.gettag(tagtypes.id3v2);         taglib.id3v2.popularimeterframe frame = taglib.id3v2.popularimeterframe.get((taglib.id3v2.tag)tag, "windowsuser", true);         frame.rating = 255;         file.save(); 

after saving file when open detail tab of video file properties, rating seems not change. when again read file programmatically in c# , check rating value, 255. why happening , why rating value not updating ?

looking @ answer check music file rating vb.net + winforms, cause tags may getting saved id3v2.4 , windows supports id3v2.3.

you can force taglib# save tags id3v2.3 following code:

taglib.id3v2.tag.defaultversion = 3; taglib.id3v2.tag.forcedefaultversion = true; 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -