Tags replace definition file: Difference between revisions

From XRECODE3
Jump to navigation Jump to search
No edit summary
No edit summary
Line 99: Line 99:
*Any value from [[File Name Pattern Elements]] can be used.
*Any value from [[File Name Pattern Elements]] can be used.
*%CHANGECASE% is a spcecial id, which means that case for all tags will be changed according to specified value (UpperCase, LowerCase or CapitalizEeachWord)  
*%CHANGECASE% is a spcecial id, which means that case for all tags will be changed according to specified value (UpperCase, LowerCase or CapitalizEeachWord)  
# List of functions which can be used
# $$File(n)
# - use tags from n-th file
# $$FirstFile()
# - use tags from first file
# $$LastFile()
# - use tags from last file
# $$OnlyIfAllAreEqual()
# - only use the tag if all values in all files are equeal
# $$FirstNonEmpty()
# - take 1st non-empty value
# this will apply the function to all tags
[*]
<ANY>=$$FirstNonEmpty()
<historylink type="back" />
<historylink type="back" />

Revision as of 17:37, 24 June 2020

Here's the example of tags replace file. Rows starting with # are comments and are ignored.

#
# Values must be put into sections.
# The following section names are supported:
#
# [*] is for all tags, i.e. values specified under this section will be replace in all tags
# Following tag-specific identifiers can be used. Values will be replaced only in specified tag.
# [Conductor]
# [Date]
# [Publisher]
# [Lyrics]
# [Flags]
# [ISRC]
# [Title]
# [Catalog]
# [Year]
# [Genre]
# [Artist]
# [Album]
# [DiscId]
# [BPM]
# [Album Artist]
# [Composer]
# [Content Group]
# [Compilation]
# [Disc]
# [Track]
# [Comments]
# [Encoded by]
#
# Format is <value from>=<value to>
# where <value from> is case-sensitive value, which will be replaced
# with <value to>, which is RegEx expression.
#
# If you want to do a case insensitive replacement, add ! to the name of the section
#
# Those are specific value, which can be used as <value from>:
#
# <NULL> is used to specify empty tag
# <ANY> is used to specify any value
#
# Special values which can be used in value
# %y - current year (nn)
# %Y - current year (nnnn)
# %m - current month (nn)
# %d - current day (nn)

# The following can be used for Track
# [Track]
# <ANY>=%track2%/%totaltracks2%
# which means that value for Track will be replaced with zero-padded value of Track
# %totaltracks2% will be replaced with zero-padded value of number of all tracks

[Encoded by]
<ANY>=Encoded by me @ %F %T

[Comments]
<ANY>=<NULL>

[DiscId]
<ANY>=<NULL>

[Album Artist]
<ANY>=<NULL>

# case sensitive replacement for all tags
[*]
Featuring=Ft.
featuring=ft.

#special case for semicolon (;)
#it must be escaped with the \, e.g. \;
#to remove semicolon from all tags, use
\;=


[Artist]
<NULL>=Some Artists

[Album]
<ANY>=Some Album

#All tags to UPPER case
#[*]
#%CHANGECASE%=UpperCase
 
#All tags to lower case
#[*]
#%CHANGECASE%=LowerCase
 
#Capitalize Each Word for all tags
#[*]
#%CHANGECASE%=CapitalizEeachWord

  • <NULL> means that only empty (null) value will be replaced.
  • <ANY> means the any (empty or not) value will be replaced.
  • Any value from File Name Pattern Elements can be used.
  • %CHANGECASE% is a spcecial id, which means that case for all tags will be changed according to specified value (UpperCase, LowerCase or CapitalizEeachWord)
  1. List of functions which can be used
  2. $$File(n)
  3. - use tags from n-th file
  4. $$FirstFile()
  5. - use tags from first file
  6. $$LastFile()
  7. - use tags from last file
  8. $$OnlyIfAllAreEqual()
  9. - only use the tag if all values in all files are equeal
  10. $$FirstNonEmpty()
  11. - take 1st non-empty value
  1. this will apply the function to all tags

[*] <ANY>=$$FirstNonEmpty()

« Go Back