Where is the path to a local movie thumb stored?
#1
Hi!

If I use the HTTP API's 'getMovieDetails' command it returns a thumb which is stored in q:\UserData\Thumbnails\Video.

Where is this relationship between a movie and a locally stored thumb represented in the video database? I only see URL's to "remote" thumbs...

Thanks,
nonpolar
Reply
#2
FYI: Meanwhile I found out that paths to movie thumbs involve hashing and the special folders...
Reply
#3
Here's some Python code I wrote to fetch the thumbnail path - 'video' is the path to the video file (insert into a class and set self.root to your .xbmc folder path):

Code:
# cached image path
  def cache_path(self, video, subdir='', split=False):
    fname = crc32(video.lower()) + '.tbn'
    return os.path.join(self.root, 'userdata', 'Thumbnails', 'Video', subdir,
      fname[0] if split else '', fname)

  # thumbnail (cover image) path for video
  def thumb_cache(self, video):
    return self.cache_path(video, split=True)

  # fanart path for video
  def fanart_cache(self, video):
    return self.cache_path(video, subdir='Fanart')

The XBMC CRC32 seems nonstandard. I can provide my implementation (ported from XBMC source) if anyone wants it.

See also this thread.
Reply

Logout Mark Read Team Forum Stats Members Help
Where is the path to a local movie thumb stored?0