INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Feature request: expression function to get cover art paths  (Read 211 times)

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2362

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.
Logged
Pages: [1]   Go Up