Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Show default cover when fail extract embedded image
#7
(08-07-2018, 12:20 AM)Tim Curtis Wrote: It already has some code to change its behavior whereby it prefers an image file to an embedded cover but that also breaks another case, ugh. But maybe you could come up with some code for your particular case and we just add a third value (2) to the SEARCH_PRI define.

// image search priority
// 0: search for embedded image first (default)
// 1: search for image file first
define('SEARCH_PRI', 0);

-TIm

Thanks Tim, I will try to add value 2 later
-------------------------------------------------------------------------------
I have just commented the part after // directory - try all files and before // nothing found -> default cover

It seems worked, edit the coverart.php requires login as root, that's all.
Reply


Messages In This Thread
RE: Show default cover when fail extract embedded image - by MilleNotti - 08-07-2018, 12:28 AM

Forum Jump: