MinimServer Forum
Showing a pdf in an album directory - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Showing a pdf in an album directory (/showthread.php?tid=7755)



Showing a pdf in an album directory - miguelito - 10-03-2026 20:45

Hi all,

I have found the methodology to show a pdf named "booklet.pdf" in JPlay by setting the value of tagFormat to:

Comment.displayFormat={$*infoFileURI^<a href="^">booklet</a>$comment}

However, I have very many of such pdfs named with the album title, so changing all of these to "booklet.pdf" is painful.

Is there a way to have minimserver parse the contents of the directory and assign the href to the pdf in question so that it shows in JPlay?

Thx!


RE: Showing a pdf in an album directory - simoncn - 10-03-2026 21:48

You can use an album name for the booklet file name. For details, see the last part of this section.


RE: Showing a pdf in an album directory - miguelito - 12-03-2026 20:54

(10-03-2026 21:48)simoncn Wrote:  You can use an album name for the booklet file name. For details, see the last part of this section.

I asked Claude to write a shell script to rename pdfs with the following conditions:
If there's only one pdf in the directory and it is not named booklet.pdf then rename to booklet.pdf.
If there's more than one pdf, just list the directory so I can do this manually (only 50 instances of this).

DONE!