Hello, i have a few question)
1. Grouping by filepath
how can i create grouping in playlist from root of disc?
i known only "$directory(x,n)". but he start from file.
for example i have hierarchy of dirrectories:
d:\Music\Rock\Splean\album1
d:\Music\Rock\Splean\album2
d:\Music\Rock\Splean\album3
d:\Music\Ellectronic\dub\Netslov\album1
d:\Music\Ellectronic\dub\Netslov\2010\album1
d:\Music\Ellectronic\dub\Netslov\2010\album2
d:\Music\Ellectronic\dub\Netslov\album3
create a few rules is matterless becouse hierarchy is different.
2. QuickTag interface
In foobar i tag file by context menu:
(http://i987.photobucket.com/albums/ae359/_duke_soft_/SCREEN_SHOT/foobar_quickTag.png)
it's terrible!) for example, in uTorrent when you do right click on tag column you see this menu:
(http://i987.photobucket.com/albums/ae359/_duke_soft_/SCREEN_SHOT/foobar_quickTag_utorrent.png)
it's simple and fast.
How can i make tag list like uTorrent? Or maybe create a downdrop…
3. Group by drag'n'drop
How can i create group like folder in playlist? At now files group by addres or costume tag, but what if create group do not depended of file? I just drug file in this, and file move to group)
4. Radio label
Also, i don't know how name radio url. QuickTag don't tagged him. There is need group like folder, but i don't know how make them.
Thx, and sorry for my bad Eng.
1. something like: $substr(%path%,1,3) should work
1. something like: $substr(%path%,1,3) should work
nope(
if code like this:
$substr(%path%,22,10)
Result:
Ozzy Osbour
Pearl Jam/C
PINK FLOYD
PLACEBO/Pla
RAMONA FALL
SHERYL CROW
and if code like this:
$substr(%path%,1,3) ...as I told you
Result:
D\:
The official Titleformat help (in the main menu Help) is your friend:
$directory_path(%path%)
and if code like this:
$substr(%path%,1,3) ...as I told you
Result:
D\:
emm) thank you, but how this code help me? maybe i bad explain, i try again)
i need group track in my playlist, for exaple by artist.
i have this directory hierarchy:
d:\Music\Rock\Splean\album3\cd1\1.mp3
d:\Music\Rock\Splean\album3\cd2\2.mp3
d:\Music\Rock\Splean\album2\3.mp3
d:\Music\Rock\Splean\4.mp3
and i have a varible: $directory(x,n) (he started from file)
$directory(%path%,1)
give us:
cd1 --------
1
cd2 --------
2
album2 --------
3
Splean --------
4
that's bad. But, if this varible start from root...
$directoryFromRoot(%path%,4)
it give us:
Splean --------
1
2
3
4
but varible "$directoryFromRoot(x,n)" does not exist! ?_?
what can i do?
maybe exists any way to create this grouping? or maybe nobody use grouping, and i wrong? But i think is normal goup files by artist and album..
I see grouping by ID3 tag, but it's not variant.
The official Titleformat help (in the main menu Help) is your friend:
$directory_path(%path%)
"is your friend" =D
i allready see it varible, and sure i first read manual, but i need part of address, becouse if playlist include many files from different folders it's mean 1 group per 1 file
but varible "$directoryFromRoot(x,n)" does not exist! ?_?
what can i do?
Well you'd probably have to write such a function yourself.
Strip the first part of the path (till first backslash):
$puts(d1,$substr(%path%,$add($strchr(%path%,\),1),999))
Strip the second part of the path:
$puts(d2,$substr($get(d1),$add($strchr($get(d1),\),1),999))
Etc.
Finally print only the characters till the next backslash:
$substr($get(d2),0,$sub($strchr($get(d2),\),1))
Here is a one-liner alternative for the
N-th directory from the root:
$directory($replace(%path%,:,),$sub($sub($len(%path%),$len($replace(%path%,\,))),N))
N=0 yields the very root (hard drive)
N=1 yields the first directory level
etc.
If you want the actual file to be captured as the highest level, replace "%path%" by "%path%\" everywhere.
thank you all! it's work, i'am happy))
The official Titleformat help (in the main menu Help) is your friend:
$directory_path(%path%)
thankyou~it works
@herojoker:
Your line fails to consider reading from archives and archives with subfolders. Expanding the $replace fixes this:
$directory(%path%,$sub($len(%path%),$len($replace(%path%,\,,|,,/,)),N))
Also not nesting $sub and lremoving the unneeded replacement of the path colon makes this even shorter. As with your version N must be replaced by the desired path depth.
(This post is designated to all the ppl finding this topic even if it's 2 years old :p)