title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 15 of 16

Thread: commas in naming ... how?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Join Date
    Jan 2011
    Location
    Pittsburgh, PA (USA)
    Posts
    39

    commas in naming ... how?

    Using the "naming" functionality to organize where ripped files go. Typically, artists go into their own directory (and albums in subdirectories of the artists.) However, if the artist name starts with "The " (such as "The Beatles"), I'd like the artist directory name to have the "The" following.

    For example, instead of "/The Beatles/", I'd like to see "/Beatles, The/".

    Here's what I've come up with, but it doesn't work:

    [IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist], The[],[album artist][]

    The problem is that the "comma" (after "[album artist]" and before " The[]") is being interpreted as a parameter delimiter for one of the functions. To better illustrate which comma, I'll show the same line using a dollar ($) sign in it's place:

    [IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist]$ The[],[album artist][]

    This, by the way, works (The result is "Beatles$ The")

    How can I replace the "$" with a comma (and have it work?) Is there some way to escape a comma character?

    Thanks
    Gary
    Last edited by garyd9; 08-03-2014 at 08:39 PM.

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    43,852

    Re: commas in naming ... how?

    To change an artist such as 'The Beatles' to 'Beatles, The':

    [IFEQUALS]artist,The [DEL]1,4,[artist][],[TRIM][DEL]1,4,[artist][], The[][]

  3. #3

    Join Date
    Jan 2011
    Location
    Pittsburgh, PA (USA)
    Posts
    39

    Re: commas in naming ... how?

    This doesn't work in the context I'm using it in. (Perhaps my fault for not explaining that this is part of a much larger string.)

    Here's my full Naming string:
    Code:
    [IFVALUE]album artist,[album artist],[IFCOMP]Various Artists[][IF!COMP][artist][][]\[album]\[IFMULTI]Disc [disc]\[][track] [IFCOMP][artist] - [][title]
    (I'm doing quite a bit here... I know..)

    For the purpose of discussion, I'll assume an album artist of "The Beatles" and an album name of "The Best Of".

    The above string will show up as:

    The Beatles\The Best Of\01 Track Name

    I'd LIKE for it to show up as:

    Beatles, The\The Best Of\01 Track Name

    Making the change you suggested, I end up with the following naming:
    Code:
    [IFVALUE]album artist,[IFEQUALS]artist,The [DEL]1,4,[artist][],[TRIM][DEL]1,4,[artist][], The[][],[IFCOMP]Various Artists[][IF!COMP][artist][][]\[album]\[IFMULTI]Disc [disc]\[][track] [IFCOMP][artist] - [][title]
    Which formats the string as:

    Beatles\The Best Of\01 Track Name

    For albums with artists that don't have "The", it somehow just completely cuts off the artist name. (So, the example shown in the naming dialog comes up as "\Immaculate\05 Holiday"

    So, I'm back to my original string (using a semi-colon):
    Code:
    [IFVALUE]album artist,[IF][SETLEN]4,,,[album artist][],=,The ,[GRAB]5,,[album artist][]; The,[album artist][],[IFCOMP]Various Artists[][IF!COMP][artist][][]\[album]\[IFMULTI]Disc [disc]\[][track] [IFCOMP][artist] - [][title]
    ... and then manually renaming the directory after everything is ripped...

    Suggestion?

    Thanks
    Gary
    Last edited by garyd9; 08-04-2014 at 05:59 PM.

  4. #4

    Join Date
    Jan 2011
    Location
    Pittsburgh, PA (USA)
    Posts
    39

    Re: commas in naming ... how?

    Another variation that fails:
    Code:
    [IFVALUE]album artist,[IFEQUALS]album artist,The [DEL]1,4,[album artist][],[TRIM][DEL]1,4,[album artist][], The[][][IF!EQUALS]album artist,The [DEL]1,4,[album artist][],[album artist][],[IFCOMP]Various Artists[][IF!COMP][artist][][]\[album]\[IFMULTI]Disc [disc]\[][track] [IFCOMP][artist] - [][title]
    Same issue:

    Beatles\The Best Of\01 Track Name.

  5. #5
    dBpoweramp Guru
    Join Date
    Sep 2011
    Posts
    754

    Re: commas in naming ... how?

    Rather than try to use a "one-size-fits-all" approach with your naming string, I'd suggest you instead use ripping profiles for the main categories of albums you use. Even just using a separate "Compilations" profile allows you to remove that contingency (and all its verbiage) from your other naming string(s). This accomplishes two things:

    (1) You avoid the problem you're dealing with right now. Long, complicated naming strings are really tedious to construct and debug, and it seems like there's always a new circumstance you have to go back and write in.

    (2) You can better "fine tune" the profile for the specific type of album (the profile is meant for). For example, I organize compilations differently than I do "regular" albums, and I prefer a different naming scheme for them as well. My Compilations ripping profile is constructed to address these specs, and my other ripping profiles aren't cluttered up with any IFCOMP/IF!COMP contingency strings.

  6. #6
    dBpoweramp Guru
    Join Date
    Dec 2008
    Location
    London, UK
    Posts
    4,015

    Re: commas in naming ... how?

    Quote Originally Posted by BrodyBoy View Post
    I'd suggest you instead use ripping profiles for the main categories of albums you use
    ... or consider populating the Sort Album Artist tag and using it in the 'Naming ' section.

  7. #7

    Join Date
    Jan 2011
    Location
    Pittsburgh, PA (USA)
    Posts
    39

    Re: commas in naming ... how?

    Quote Originally Posted by BrodyBoy View Post
    Rather than try to use a "one-size-fits-all" approach with your naming string, I'd suggest you instead use ripping profiles for the main categories of albums you use.
    For *me*, that would be more error prone than dealing with long complicated strings. I'm VERY likely to forget to change a profile, and would rather spend 3 days doing nothing but trying to find the "perfect" naming string. Once I find that perfection, I can leave it alone (for at least 4 weeks.)

    I realize that this isn't exactly sane. My only excuse is that I'm a professional software engineer.

    Take care
    Gary

  8. #8

    Join Date
    Jan 2011
    Location
    Pittsburgh, PA (USA)
    Posts
    39

    Re: commas in naming ... how?

    Quote Originally Posted by aengusafton View Post
    its not working, is there any other way to change it ???
    What, exactly, is not working? (Please be descriptive... no one can possibly know what is inside your head, so you have to tell us.)

  9. #9

    Join Date
    Jan 2021
    Posts
    1

    Re: commas in naming ... how?

    SOLUTION
    If anyone, like me, came across this thread while looking for a solution, to use commas in a naming string - like garyd9's large rules.

    U can use <comma_> and it will be replaced with a real comma.

    That's all. :-)

  10. #10

    Join Date
    Oct 2017
    Posts
    17

    Cool Re: commas in naming ... how?

    This info might not directly assist 'Garyd9' but may assist others with NAMING CONVENTION Strings and STANDARD DSPs.

    1) <WHAT to do with THE> To automatically change Artists names to 'NAME, The' instead of 'The NAME'-

    + Select 'Menu'(Green List Icon) / 'CD Ripper Options' / 'Tags & File Names' / 'Meta Data & ID Tag - OPTIONS' / put a check in the box 'Replace 'The [artist]' with '[artist], The'.


    2) <NICE Naming Convention strings> -

    + Two nice dynamic naming strings some nice person (thanks) offered me years ago from dBpoweramp FORUM:
    "Heres the dynamic naming string I use. It automatically deals with compilations and multi disks. Just copy it and paste into The box where you enter naming. Try it with ripping and see if you like the outcome."

    ---- For ALAC, using "Compilations" folder instead of "Various Artists":

    [IFCOMP]Compilations\[album][IFMULTI]\Disc [disc][]\[track]-[title]-[artist][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[album][IFMULTI]\Disc [disc][]\[track]-[title][]


    ---- For FLAC, using "Various Artists" folder (not "Compilations"):

    [IFCOMP]Various Artists\[album][IFMULTI]\Disc [disc][]\[track]-[title]-[artist][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[album][IFMULTI]\Disc [disc][]\[track]-[title][]

    * We use these with [Mult-Encoder] simultaneously inputting to our [FLAC] and [ALAC]Apple Lossless (M4a -Level5) as we rip cd once, adding all the info we would ever want about the album.


    3) <DSPs used> -

    + We typically only use:

    - ReplayGain (Track & Album Gain) [calculate Replay Gain, or EBU R128 volume adjustment]
    - HDCD (w +6 db Amplification...) [decode HDCD Audio Cds (Windows Only)]
    - Audio CD - Hidden Track (w -dbsilence+"-54" Window(Detection Threshold)="4000"ms) [remove mid-track silence]
    - Audio CD - Silence Track Deletion [remove silence tracks from Audio CD]

    (we use a few others depending on the needs of the CD being processed)


    HOPE this helps some. Thanks for past assistance from others, and have FUN TODAY!
    ~ rkk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •