https://bugs.kde.org/show_bug.cgi?id=480337

            Bug ID: 480337
           Summary: Filename to Tag: prepend/append string not working (or
                    misleading tooltip?)
    Classification: Applications
           Product: kid3
           Version: 3.9.x
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: uflei...@users.sourceforge.net
          Reporter: mihawk.90+kdeb...@googlemail.com
  Target Milestone: ---

SUMMARY
To preface this: Maybe I'm misunderstanding this feature, but since the
Tooltips for both Format fields are actually different, I'm assuming it's not
just an oversight in them.
Basically what I want to do is prepend one of the matched parts of the filename
with a custom string. Assume we have this filename:
ARTIST - TITLE [COMMENT].ext
I can do
%{artist} - %{title} [%{comment}]
And that works fine, however I want to prepend the Value of the Comment with a
custom string, so I used:
%{artist} - %{title} [%{"prependstring"comment}]
However this results in kid3 prepending the Field*name*, not the Field*value*,
i.e. my comment gets put in a custom "PREPENDSTRING"COMMENT field.
I'm not entirely sure if this is a bug or if I am misunderstanding the feature
(or if the Tooltip is just misleading and there is no pre-/apend for this
operation). The Handbook mentions "Any frame name can be used, for instance
unified frame names like %{albumartist}, %{discnumber.1}, %{bpm} or format
specific names like %{popm}.", however this is in regards to the Tag > Filename
operation, not Filename > Tag. If this paragraph is intended for both
operations I would see this as at least an unexpected behaviour, since
pre-/appending an existing frame-name with a custom string seems not useful
when any valid frame-name is allowed anyway.

STEPS TO REPRODUCE
1. Open any file
2. Change the Format (down) code to include a placeholder with a pre- and/or
appending string
3. Click either Tag 1 or Tag 2, depending on your file

OBSERVED RESULT
kid3 creates a custom field name consisting of the pre-/append-string in
quotes, as well as the actual field name (which presumably would be invalid
anyway)

EXPECTED RESULT
kid3 should create a valid field with the value consisting of the prepend
string, the extracted value from the filename, and the appended string

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 39
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to