home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Listen Music
New Music Tagreader
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="hwahrmann" data-source="post: 216546" data-attributes="member: 10391"><p>Here's how i handle the Rating.</p><p>[CODE]</p><p>TagLib.File tag = TagLib.File.Create(strFile);</p><p>if (tag.MimeType == "taglib/mp3")</p><p>{</p><p> // Handle the Rating, which comes from the POPM frame</p><p> TagLib.Id3v2.Tag id32_tag = tag.GetTag(TagLib.TagTypes.Id3v2) as TagLib.Id3v2.Tag;</p><p> if (id32_tag != null)</p><p> {</p><p> TagLib.Id3v2.PopularimeterFrame popm;</p><p> foreach (TagLib.Id3v2.Frame frame in id32_tag)</p><p> {</p><p> popm = frame as TagLib.Id3v2.PopularimeterFrame;</p><p> if (popm != null)</p><p> {</p><p> int rating = popm.Rating;</p><p> // Do whatever needed with rating</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>currently doing it only for mp3 files, where we have the rating in the popm frame.</p></blockquote><p></p>
[QUOTE="hwahrmann, post: 216546, member: 10391"] Here's how i handle the Rating. [CODE] TagLib.File tag = TagLib.File.Create(strFile); if (tag.MimeType == "taglib/mp3") { // Handle the Rating, which comes from the POPM frame TagLib.Id3v2.Tag id32_tag = tag.GetTag(TagLib.TagTypes.Id3v2) as TagLib.Id3v2.Tag; if (id32_tag != null) { TagLib.Id3v2.PopularimeterFrame popm; foreach (TagLib.Id3v2.Frame frame in id32_tag) { popm = frame as TagLib.Id3v2.PopularimeterFrame; if (popm != null) { int rating = popm.Rating; // Do whatever needed with rating } } } } [/CODE] currently doing it only for mp3 files, where we have the rating in the popm frame. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Listen Music
New Music Tagreader
Contact us
RSS
Top
Bottom