season thumbs in xbmc cache
#1
hello,

i'm actualy working on my xbmcstuff downloader plugin, all is good, except for season thumbs,

no problem to find tvshow thumbs by using the tvshow path, but i' can't find how to get thumbail cache for seson01 season01 ... season-all...etc ...

i don't know what to pass to xbmc.getCacheThumbName for season thumbs.


anybody knows?
Reply
#2
FileItem.cpp ::GetCachedSeasonThumb(). should be readable even if you don't read c++
Reply
#3
thanks!

is there a way to use it in python plugin? or is there any documentation to use it?

i'm stucked with that since last week.

i really don't see how to use this cpp code in python.
Reply
#4
you don't use the code - you decode what the code does and replicate it in python
Reply
#5
spiff Wrote:you don't use the code - you decode what the code does and replicate it in python

ho !

ok!

i'll try to take a look there Wink
Reply
#6
ok, i think i've pointed the code:

Code:
CStdString CFileItem::GetCachedSeasonThumb() const
{
  CStdString seasonPath;
  if (HasVideoInfoTag())
    seasonPath = GetVideoInfoTag()->m_strPath;

  return GetCachedThumb("season"+seasonPath+GetLabel(),g_settings.GetVideoThumbFolder(),true);
}

so i think i should pass "season"+seasonPath+GetLabel() in python function.

"season" should be this strings too .
season path should be the path i can get in db.
but getlabel(), really don't know Sad

i keep trying
Reply
#7
OH JESES: i didn't clear that bugger up yet, lol.

GetLabel() would be 'Season x' where Season is friggan language dependent. i feel ashamed
Reply
#8
ok, finded (with the great help of frost.)


xbmc.getCacheThumbName("season" + seasonPath)

where season path is: showpath\Season 1 or showpath\Season 2
Reply

Logout Mark Read Team Forum Stats Members Help
season thumbs in xbmc cache0