sualfred/script.embuary.helper

Cached images fail due to no path translation / use of os.path.isfile on a special path

Closed this issue · 0 comments

roidy commented

if os.path.isfile(xbmc_cache_file):

elif os.path.isfile(xbmc_vid_cache_file):

These two line will always fail due to the fact that you are checking a special path using an os path function.

Either add the translate function:
if os.path.isfile(xbmc.translatePath(xbmc_cache_file)):

Or use the xbmcfs functions:
if xbmcvfs.exists(xbmc_cache_file):

I noticed it when trying to blur embedded album artwork