Originally Posted by
Spoon
You are putting the naming string into the dynamic section, rather than the file path (which is limited to 255 chars).
I'm not sure what you mean...
In 'Folder', I have:
Code:
V:\Audio\Converted\
In 'Dynamic', I have the dynamic code.
Windows paths should be limited to 255 chars for each file or directory name, not 255 chars for the entire path name. I have various [MAXLENGTH]s in there to take care of that limit.
Regardless, I don't think any computed path lengths will be over 255 chars total, so I assume the limitation here is that the string of codes is limited to a certain number of chars, which it shouldn't be, since that's something under dBpoweramp's control and not an OS issue.
I tried a shorter string which works:
Code:
G:\Audio\Music\M\Madonna\The Immaculate Collection (1990)\ogg . 01 . Holiday . 241kb.ogg
[TRIM][IFVALUE][album artist],[UPPER][GRAB]1,1,[TRIM][album artist][][][],[IFVALUE][artist],[UPPER][GRAB]1,1,[TRIM][artist][][][],[IFVALUE][album],[UPPER][GRAB]1,1,[TRIM][album][][][],[ Unknown ][][][][]\[TRIM][IFVALUE][album artist],[MAXLENGTH]30,[TRIM][album artist][][],[IFVALUE][artist],[MAXLENGTH]30,[TRIM][artist][][],[IFVALUE][album],[MAXLENGTH]30,[TRIM][album][][],[TRIMFIRSTFOLDER][origpath][][][][][IFVALUE][year], . ([year]),[][TRIM][MAXLENGTH]30,[IFVALUE][album artist],[IFVALUE][album], . [album],[],[IFVALUE][artist],[IFVALUE][album], . [album],[],[][][][][IFMULTI] . disc [disc][][]\[TRIM][track] . [IFVALUE][title],[TRIM][MAXLENGTH]30,[title][][],[ Unknown Title ] . [ [origfilename] ] . [unique][][IFVALUE][artist],[IFVALUE][album artist],[IF!EQUALS][artist],[album artist], . ([TRIM][MAXLENGTH]30,[artist][][])[],[],[][]
V:\Audio\Converted\M\Madonna . (1990). The Immaculate Collection\01 . Holiday.mp3
I can try the individual components (making the code string smaller) and they work individually:
Part 1:
Code:
[Path Part 1]\
[TRIM]
[IFVALUE][album artist],
[UPPER][GRAB]1,1,[TRIM][album artist][][][]
,
[IFVALUE][artist],
[UPPER][GRAB]1,1,[TRIM][artist][][][]
,
[IFVALUE][album],
[UPPER][GRAB]1,1,[TRIM][album][][][]
,
[ Unknown ]
[]
[]
[]
[]
\[Unique ID [unique]]
becomes
Code:
[Path Part 1]\[TRIM][IFVALUE][album artist],[UPPER][GRAB]1,1,[TRIM][album artist][][][],[IFVALUE][artist],[UPPER][GRAB]1,1,[TRIM][artist][][][],[IFVALUE][album],[UPPER][GRAB]1,1,[TRIM][album][][][],[ Unknown ][][][][]\[Unique ID [unique]]
creating
Code:
V:\Audio\Converted\[Path Part 1]\M\[Unique ID 9924].mp3
Part 2:
Code:
[Path Part 2]\
[TRIM]
[IFVALUE][album artist],
[MAXLENGTH]30,[TRIM][album artist][][]
,
[IFVALUE][artist],
[MAXLENGTH]30,[TRIM][artist][][]
,
[IFVALUE][album],
[MAXLENGTH]30,[TRIM][album][][]
,
[ Unknown ]
[]
[]
[]
[]
\[Unique ID [unique]]
becomes
Code:
[Path Part 2]\[TRIM][IFVALUE][album artist],[MAXLENGTH]30,[TRIM][album artist][][],[IFVALUE][artist],[MAXLENGTH]30,[TRIM][artist][][],[IFVALUE][album],[MAXLENGTH]30,[TRIM][album][][],[ Unknown ][][][][]\[Unique ID [unique]
creating
Code:
V:\Audio\Converted\[Path Part 2]\Madonna\[Unique ID 9926].mp3
Part 3:
Code:
[Path part 3]\
[TRIM]
[IFVALUE][year],
[IF!EQUALS][year],0000,
. ([TRIM][MAXLENGTH]4,[year][][])
[]
,
[]
[IFVALUE][album artist],
[IFVALUE][album],
.
[MAXLENGTH]30,[TRIM][album][][]
,
[]
,
[]
[IFCOMP]
. Compilation
[]
[IFVALUE][disc],
. disc [disc]
[IFVALUE][disc_total],
of [disc_total]
,
[]
,
[]
[IFVALUE][track_total],
. [track_total] tracks
,
[]
[IFVALUE][album artist],
,
[IFVALUE][album],
,
[IFVALUE][artist],
,
[TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][origpath][][][]
[]
[]
[]
[]
\[Unique ID [unique]]
becomes
Code:
[Path part 3]\[TRIM][IFVALUE][year],[IF!EQUALS][year],0000, . ([TRIM][MAXLENGTH]4,[year][][])[],[][IFVALUE][album artist],[IFVALUE][album], . [MAXLENGTH]30,[TRIM][album][][],[],[][IFCOMP] . Compilation[][IFVALUE][disc], . disc [disc][IFVALUE][disc_total], of [disc_total],[],[][IFVALUE][track_total], . [track_total] tracks,[][IFVALUE][album artist],,[IFVALUE][album],,[IFVALUE][artist],,[TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][origpath][][][][][][][]\[Unique ID [unique]]
creating
Code:
V:\Audio\Converted\[Path part 3]\ (1990)\[Unique ID 9927].mp3
(Note the space at the beginning of the (1990) folder - [TRIM] failed to get this, probably because the period got trimmed off too to avoid making the directory look like a system file. It would be very nice if all possible bad file names would be automatically converted to a good file name, with a warning or error logged to indicate the problem.)
Part 4:
Code:
[Path part 4]\
[TRIM]
[IFVALUE][track],
[TRIM]
[track]
[]
,
__
[]
.
[IFVALUE][title],
[TRIM]
[MAXLENGTH]
30
,
[title]
[]
[]
,
[ Unknown Title ]
. [ [origfilename] ]
. [unique]
[]
[IFVALUE][artist],
[IFVALUE][album artist],
[IF!EQUALS][artist],[album artist],
. ([TRIM][MAXLENGTH]30,[artist][][])
[]
,
[]
,
[]
[]
becomes
Code:
[Path part 4]\[TRIM][IFVALUE][track],[TRIM][track][],__[] . [IFVALUE][title],[TRIM][MAXLENGTH]30,[title][][],[ Unknown Title ] . [ [origfilename] ] . [unique][][IFVALUE][artist],[IFVALUE][album artist],[IF!EQUALS][artist],[album artist], . ([TRIM][MAXLENGTH]30,[artist][][])[],[],[][]
creating
Code:
V:\Audio\Converted\[Path part 4]\01 . Holiday.mp3
If I combine the pieces in Windows, I get:
Code:
V:\Audio\Converted\M\Madonna\ (1990)\01 . Holiday.mp3
which is less than 255 characters for each part and for the total string. (Also missing the album since I screwed up and left that off.)
If I combine the codes in dBpoweramp, I get:
Code:
V:\Audio\Converted\[TRIM][IFVALUE]album artist,[UPPER][GRAB]1,1,[TRIM][][][],[IFVALUE]artist,[UPPER][GRAB]1,1,[TRIM]Madonna[][][],[IFVALUE]album,[UPPER][GRAB]1,1,[TRIM]The Immacu\The Immaculate Collection (1990)[][][][][][][][TRIM][IFVALUE. 9929[][IFVALUE.mp3
Anyway, I'm switching to a standard simple string.