Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Which command to use to locate album scans in upper directory (Read 4177 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Which command to use to locate album scans in upper directory

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. 

 

Which command to use to locate album scans in upper directory

Reply #1
We need to know where do you want to display it first?

Which command to use to locate album scans in upper directory

Reply #2
Assuming you want to display the "folder.jpg" file, the code would be:
Code: [Select]
//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),)

Which command to use to locate album scans in upper directory

Reply #3
Assuming you want to display the "folder.jpg" file, the code would be:
Code: [Select]
//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.~

Which command to use to locate album scans in upper directory

Reply #4
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: [Select]
$replace(%path%,%directoryname%'\'%filename_ext%,)*

Which command to use to locate album scans in upper directory

Reply #5
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[/b]

Which command to use to locate album scans in upper directory

Reply #6
Ah sorry, at the same place use
Code: [Select]
$replace(%path%,%directoryname%'\'%filename_ext%,)Scans\*

Which command to use to locate album scans in upper directory

Reply #7
Ah sorry, at the same place use
Code: [Select]
$replace(%path%,%directoryname%'\'%filename_ext%,)Scans\*


Thanks for the fast reply and the solution~