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
| | |-+  Database format lines not stripping after 5 tags
« previous next »
  • Print
Pages: [1]

Author Topic: Database format lines not stripping after 5 tags  (Read 1711 times)

Offline onocentaur

  • Member
  • *
  • Posts: 22
Database format lines not stripping after 5 tags
« on: May 29, 2007, 09:24:13 AM »
A bug? My format line is:
%format "fmt_comp" "%02d%s - %s - %02d:%02d" tracknum title artist Lm Ls %strip = "2"
In the database view I get all the tags - the %strip isn't removing the first two characters (i.e. track number). I've played around a bit and it's fine when there are only four tags in the format line, adding a fifth kills the stripping. Any thoughts?!
Logged

Offline yueonyrl

  • Member
  • *
  • Posts: 5
Re: Database format lines not stripping after 5 tags
« Reply #1 on: June 28, 2007, 10:22:57 PM »
Yes, I have the same problem.
I am using Rocbox cpchan branch V-070626.
Logged

Offline jgrg1

  • Member
  • *
  • Posts: 18
Re: Database format lines not stripping after 5 tags
« Reply #2 on: November 26, 2008, 04:24:49 PM »
I think this is governed by a constant within the tagtree.c code file called MAX_TAGS. By default this is defined = 5. When generating the format strings in the method

static int get_format_str(struct display_format *fmt)

it limits the number of tags:

    ...
    while (fmt->tag_count < MAX_TAGS)
    {
        ....

The only way to change this is to change the code.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Database format lines not stripping after 5 tags
« Reply #3 on: November 26, 2008, 07:41:21 PM »
Quote from: yueonyrl on June 28, 2007, 10:22:57 PM
Yes, I have the same problem.
I am using Rocbox cpchan branch V-070626.

Please only comment about SVN Rockbox (or the release version) here.  Discussion about unsupported builds should be restricted to a devoted topic in the Unsupported Builds forum.
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
| | |-+  Database format lines not stripping after 5 tags
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 15 queries.