INTERACT FORUM

More => Old Versions => JRiver Media Center 29 for Windows => Topic started by: zybex on May 26, 2022, 09:17:49 am

Title: Feature request: expression function to get cover art paths
Post by: zybex on May 26, 2022, 09:17:49 am
This function would be useful to find files/albums/seasons/series with missing cover art, and to display any of the covers on the tooltip/theater mode:

CoverPath(type, checkExists)
Returns the full path to the cover for the current file, album, season or series. Optionally checks if the file exists.

type: (optional) type of cover path to return
0 = file cover path (default)
1 = album cover path
2 = series cover path
3 = season cover path

checkExists: (optional)
0 = no check, returns the expected cover path (default)
1 = check if file exists, return "" (empty) if the expected file does not exist

Note that [Image File] can be overridden with a full path to a file cover (or with a relative path different from the filename), so CoverPath(0) should take that field into consideration.