Help - Search - Members - Calendar
Full Version: Which command to use to locate album scans in upper directory
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
D.Sync
As the title stated, lets just say I have an album (with 2 CD's) located under C:\Music\Arias\CD1 and C:\Music\Arias\CD2 respectively.

And my scans for the album, in this case, Arias, is stored under the directory C:\Music\Arias\Scans instead of storing them each under CD1 and CD2 directory as their scan resolution & size is very high.

So I would kindly like a command/string to located my album scans under C:\Music\Arias\Scans. Anyone know what will the command be?

Thanks for the reply. cool.gif
thuan
We need to know where do you want to display it first?
Lucky Luciano
Assuming you want to display the "folder.jpg" file, the code would be:
CODE

//what you need to remove from an mp3 file's path in order to go up two parent folders
$puts(s1,\$directory(%path%)\%filename_ext%)
//what you'll add to the path two folders up
$puts(s2,\Scans\folder.jpg)
//compiling the complete path to the folder.jpg
$puts(coverPath,$replace(%path%,$get(s1),$get(s2)))
///actual display
$imageabs2(width,height,,,,,x,y,$get(coverPath),)
D.Sync
QUOTE(Lucky Luciano @ May 12 2008, 13:18) *

Assuming you want to display the "folder.jpg" file, the code would be:
CODE

//what you need to remove from an mp3 file's path in order to go up two parent folders
$puts(s1,\$directory(%path%)\%filename_ext%)
//what you'll add to the path two folders up
$puts(s2,\Scans\folder.jpg)
//compiling the complete path to the folder.jpg
$puts(coverPath,$replace(%path%,$get(s1),$get(s2)))
///actual display
$imageabs2(width,height,,,,,x,y,$get(coverPath),)



Hi there, thanks for the help but apparently it doesn't work for me.
I'm using 'Lyrics Art' plugin and here's an example on it's function to locate cover art:

$replace(%path%,%filename_ext%,)*

*It can use wildcards.~ smile.gif
thuan
I assume you're using my English translation of this component.
In Lyrics Art Preference, Album Art tab, press on Add button and enter this code
CODE
$replace(%path%,%directoryname%'\'%filename_ext%,)*
D.Sync
I'm using the japanese version.

Btw, when I add the line, it only shows

C:\Music\*

I would like it to show up like C:\Music\Arias\Scans like the example mentioned above.

[+]C:
-------[+]Arias
-----------[+]Disc 1
-----------[+]Disc 2
-----------[+]Scans
thuan
Ah sorry, at the same place use
CODE
$replace(%path%,%directoryname%'\'%filename_ext%,)Scans\*
D.Sync
QUOTE(thuan @ May 13 2008, 00:15) *

Ah sorry, at the same place use
CODE
$replace(%path%,%directoryname%'\'%filename_ext%,)Scans\*



Thanks for the fast reply and the solution~ biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.