INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Unexpected value returned by TrackInfo_Insert(Rating) when rating is blank  (Read 440 times)

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1092

I thought I'd have a go at updating my TrackInfo Plugins to include the new tags that have been added since MC28 saw the light of day and add in handling of the Rating10 field/tag.

Like most TrackInfo Plugin Authors I was using images for the rating with a tooltip to display the numeric value of that rating.
However I thought I'd reduce the amount of code needed to display both the Rating and Rating10 fields/tags by displaying them as Numeric Values, but only if those fields/tags contained values.

When it comes to the Rating10 field/tag, which is set up as integer with an edit type of 10 stars and only accepts the values 1 thru 10, the field/tag was only being displayed if it contained a value (just like any other filed/tag that is defined as integer and empty)

But when it came to the Rating field/tag if it contained data the number of stars was displayed but for tracks that I'd deliberately removed the rating from not only was the field/tag name being displayed but also the phrase "? stars".

After spotting that, I got a bit curious and had a look at the MC supplied "Audio -- Task -- Not rated" smartlist and noticed that it was looking for files/tracks where the Rating is 0, the default value for an empty integer field/tag.

I then decided to remove the Rating from a track that had already been played and looked in the Tag Window  to see what was being reported in the General Section the RatingTag/Field was present but showing no value/image and there was no mention of the Rating Tag in the Tag Dump Section.
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.
Pages: [1]   Go Up