Kodi Community Forum
Thumbnails for music library mapped to absolute path - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Thumbnails for music library mapped to absolute path (/showthread.php?tid=31465)



Thumbnails for music library mapped to absolute path - SandmanCL - 2008-02-24

In the 'thumb' table of MyMusic7.db, the path to each thumb is the absolute path to the file:
idthumb:1
strThumb: /home/sandmancl/XBMC/BUILD/UserData/Thumbnails/Music/c/cade0ebe.tbn

This means that it is not cross-platform ready. I checked the database on the xbox and strThumb looks like this:

q:\userdata\Thumbnails\Music\c\cade0ebe.tbn

If I import the xbox database into XBMC for Linux it still works fine w/ thumbnails loading, so the problem only exists in the creation of the database.


- jmarshall - 2008-02-24

I suspect the problem is because on linux in CFileItem it does path translation of the thumbs.

Ideally path translation should be done at the last possible moment (i.e. in the texture loader, and in the filesystem).


- gnif - 2008-02-25

Could this be related to the libjpeg problem under some operating systems. SDL on Debian and Slackware has libjpeg support compiled in and loads libjpeg, this screwes things up with the CxImage library.

I am using a patched version of the Library that links in the system libjpeg and libpng libraries instead of using the ones that are in the CxImage tree. Until I fixed this I was unable to generate thumbnails for anything, including videos, which would cause a Seg Fault. I am not experiencing any path problems.

Here is a link to the patch I submitted to sourceforge:
http://sourceforge.net/tracker/index.php?func=detail&aid=1897920&group_id=87054&atid=581840


- jmarshall - 2008-02-25

No, this is unrelated.