[ATV2] Mysql and local thumbnails (free bucks for solution :P)
#1
Hi there. I'm struggling into this.

I've set up a centralized mysql db system, everything is working except thumbnails.

Movies are on a NAS, and everything is stored in each movie directory (nfo, thumbnails and fanarts).

When I add a new movie to the share, the only machine which is able to view the thumbnail is the one that added the movie itself. So if I scan the share with my mac, the mac can see the thumbnail; if it's the atv that scan first, it gets the thumbnails.

The only way to see the thumbnail on other machines is to go to movie info.

So, Is there any way I can force each machine to download the thumbnail from the movie's folder and store it locally?

I've read this
http://forum.xbmc.org/showpost.php?p=798202&postcount=5
and this
http://forum.xbmc.org/showpost.php?p=798173&postcount=4

but since it's an old post I wrote a new one...

I know I can use symbolic links or pathsubstitution, but this would 1 step more when I scrape movies. And since all thumbnails are already stored in the movie directory, I don't see why I should use these methods...


thank you very much

melagodo
Reply
#2
melagodo Wrote:And since all thumbnails are already stored in the movie directory, I don't see why I should use these methods...

XBMC uses your local stored thumbs in the movie folder just for scraping and not for displaying. Fanart/Thumbs are displayed from a thumbnail folder, so it definitly would make sense to use pathsubstitution when you want more than one client to display your stuff.

Check:
/private/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails

Every thumb or fanart is stored there.
Reply
#3
To "move" the thumbnail to a central location, u need something similar to the following added to advancedsettings.xml:

<pathsubstitution>
<substitute>
<from>special://Thumbnails</from>
<to>smb://xbmc:[email protected]/MediaShare/Thumbnails</to>
</substitute>
</pathsubstitution>

This is using a user-id called xbmc with password xbmc that is looking at an smb share on my nas. I have this in the advancedsettings file on my PC and my 2 ATV's so that they all share the same thumbnail folder...

Be warned, it will be slower than local thumbnails...
QNAP TS670 NAS - 4x4TB Raided with NFS Support & Central MySQL DB
Pi 3 [Xbian] - Samsung 46" ES7000 Smart TV & HT-E5550 3D BD Sound System
Pi 3 [Xbian]  + Hyperion Ambilight- Samsung 48" Curved UE48JS9000 4k
PowerEthernet T1502 Powerline adapters
Reply
#4
I see your point guys, but since thumbnails and fanarts are already stored within the movie dir, why should I get them remotely and not cache them locally? It would improve speed!

Btw, I can't get pathsubstitution to work Sad

Here advancedsettings.xml
http://pastebin.com/5RSNBEBg

and here log
http://pastebin.com/XCzSEA2t

Almost same configuration works with my pc, btw. Here's advancedsettings which is proved to work (since remote Thumbnails folder was empty, I added video source and scanned it, and remote thumbnails folder got populated)
http://pastebin.com/ERcMYGRd

Thanks for your time

melagodo
Reply
#5
Thanks to the big Memphiz on #xbmc-ios, I came up with the solution (or better, he came up with the solution).

I had mapped the network share
- on atv2 with smb://....
- on my mac, which populated the remote thumbnails folder, with /Volumes....

Since
Quote:xbmc calculatest the names of the thumbnails by hashing the complete path (cit, Memphiz)
things didn't work out. I'll let to him techical explanation because they go beyond my knowledge.

Simply by scraping the movie dirs with same path (in my case, smb://.... on both mac and atv2, with same credentials) I solved the issue.

Thank you very much,

melagodo
Reply

Logout Mark Read Team Forum Stats Members Help
[ATV2] Mysql and local thumbnails (free bucks for solution :P)0