Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  SOLVED Grouping Tag
« previous next »
  • Print
Pages: [1]

Author Topic: SOLVED Grouping Tag  (Read 688 times)

Offline Buzkill

  • Member
  • *
  • Posts: 36
SOLVED Grouping Tag
« on: September 01, 2021, 01:58:57 PM »
Im not able to get the grouping tag to work as expected in tagnavi_custom.

Is it actually a usable tag like it says in on the database write up?

Code: [Select]
%menu_start "custom" "metal group"
"metal" -> artist ? grouping ~ "metal" -> album -> title = "fmt_title"

By using this i actually only get Songs Titles that have "Metal" in them
so it seems to be checking  the "title" tag  and not "grouping"

« Last Edit: September 02, 2021, 11:51:30 AM by Buzkill »
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: Grouping Tag
« Reply #1 on: September 01, 2021, 05:14:37 PM »
That's because the title is currently used when the grouping tag is empty, see here for an explanation from the person who originally implemented support for the grouping tag: https://www.rockbox.org/tracker/task/7362
Quote
when building the database and a track doesn’t have a grouping tag, it copies the value from the title tag. This should make browsing through classcical works in the database a bit nicer since you will find all your music, not only titles having the grouping tag explicitely set (similar to the recent albumartist improvement). Y
I have to admit,  I don't quite understand that reasoning, even in the context of classical works. I had the same experience as you where it seemed like the tag simply didn't "work" correctly in the database when I viewed groupings/works by composer, since the list was polluted by song titles, which is why I personally changed it in code for the version I'm running. It's very easy to do. Just look for the if statements in apps/tagcache.c that use has_grouping as a conditional and only keep the part that would be executed if has_grouping was true,

so from lines 2019 to 2026, only keep line 2021:
https://github.com/Rockbox/rockbox/blob/a8253c57ddec8a1dfb2f77e7be9c451595fb094a/apps/tagcache.c#L2021
and from lines 2048 to 2055 only keep line 2050:
https://github.com/Rockbox/rockbox/blob/a8253c57ddec8a1dfb2f77e7be9c451595fb094a/apps/tagcache.c#L2050
Logged

Offline Buzkill

  • Member
  • *
  • Posts: 36
Re: Grouping Tag
« Reply #2 on: September 01, 2021, 05:17:12 PM »
Quote from: chris_s on September 01, 2021, 05:14:37 PM

so from lines 2019 to 2026, only keep line 2021:
https://github.com/Rockbox/rockbox/blob/a8253c57ddec8a1dfb2f77e7be9c451595fb094a/apps/tagcache.c#L2021
and from lines 2048 to 2055 only keep line 2050:
https://github.com/Rockbox/rockbox/blob/a8253c57ddec8a1dfb2f77e7be9c451595fb094a/apps/tagcache.c#L2050


Thanks for the tip! I'll test it out later today.
Logged

Offline Buzkill

  • Member
  • *
  • Posts: 36
Re: Grouping Tag
« Reply #3 on: September 02, 2021, 10:27:34 AM »
Quote
so from lines 2019 to 2026, only keep line 2021:
https://github.com/Rockbox/rockbox/blob/a8253c57ddec8a1dfb2f77e7be9c451595fb094a/apps/tagcache.c#L2021
and from lines 2048 to 2055 only keep line 2050:
https://github.com/Rockbox/rockbox/blob/a8253c57ddec8a1dfb2f77e7be9c451595fb094a/apps/tagcache.c#L2050

So i did this and it *kinda* worked.  For my test I removed all grouping tags from all my music on the device, and then proceeded to label a single album with the grouping tag "Metal".
I added:
Code: [Select]
"Heavy" -> artist ? grouping = "Metal" -> album -> title = "fmt_title"...to my custom nav file, but nothing shows up, Just <All Tracks> and <Random> telling me it found nothing. And so i tried this, with no condition, just to see what would show up...
 
Code: [Select]
"Group Test" -> grouping  -> artist -> album -> title = "fmt_title" and strangely all the Music WITHOUT grouping tags shows up and the entire album I added the "Metal" tag to show up in <UNTAGGED> perfectly sorted.

so it's as if the database is adding the track title to the grouping tag database if there is no grouping tag and leaving it untagged if there is a grouping tag.

Not sure what i did wrong or missed, or maybe something's changed,but you were saying you have it working so it must be on my end. Any ideas?



« Last Edit: September 02, 2021, 10:50:57 AM by Buzkill »
Logged

Offline Buzkill

  • Member
  • *
  • Posts: 36
Re: Grouping Tag
« Reply #4 on: September 02, 2021, 11:01:30 AM »
it's as if the code is working like this...

Code: [Select]
if (has_grouping)
    {
        #do nothing
    }
    else
    {
        ADD_TAG(entry, tag_grouping, &id3.title);
    }
Logged

Offline Buzkill

  • Member
  • *
  • Posts: 36
SOLVED RE:GROUPING TAG
« Reply #5 on: September 02, 2021, 11:51:12 AM »
SOLVED

So the issue was that i was using the wrong "grouping" tag in mp3tag. I guess rockbox looks at the CONTENTGROUP tag and not the actual GROUPING tag. Swapping to that fixed the issue.

Funny enough though, it seems by putting any information in the GROUPING tag with mp3tag, seems to make rockbox ignore it, even though it looks at CONTENTGROUP.

is this somthing i should report as a "bug"?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4383
Re: SOLVED Grouping Tag
« Reply #6 on: September 25, 2021, 02:45:00 PM »
I would say so.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  SOLVED Grouping Tag
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.029 seconds with 18 queries.