Where does the thumb CRC for sets come from?
#1
Hello,
I am the developer of XBNE and I need some information:

How are coded thumbs of sets?
CRC( "Name of set") does not work, there must be a code added like actors, but I have not found.

Where are stored in database name of the Sort Title ?

Thanks
Reply
#2
I found for sorttitle: movie.c10
Reply
#3
it uses the standard CFileItem::GetCachedVideoThumb() for the set item, with a fallback to GetCachedVideoThumb() for the first item.
Reply
#4
I tried GetCachedVideoThumb() with Sets.StrSet, but this does not work ??
Reply
#5
For information, I think it's this line that gives the thumb :
Code:
CFileItemPtr pItem(new CFileItem(m_pDS->fv("sets.strSet").get_asString()));
CStdString strDir;
strDir.Format("%ld/", m_pDS->fv("sets.idSet").get_asInt());
pItem->m_strPath=strBaseDir + strDir;
pItem->m_bIsFolder=true;
pItem->SetLabelPreformated(true);
if (CFile::Exists(pItem->GetCachedVideoThumb()))
    pItem->SetThumbnailImage(pItem->GetCachedVideoThumb());
else // use the first item's thumb
...
But I do not know C and I do not see what data is passed to GetCachedVideoThumb()
Reply
#6
no data is passed - it's a class member function (in CFileItem)
Reply
#7
Hrm...amazing what kind of attention you draw when the thread title is actually meaningful, isn't it? Keep this in mind for the future.
Reply
#8
Nobody has an idea on my problem ?
XBNE : XBMC Video DataBase / Nfo Editor
Download - Forum - Donate
Reply
#9
I just found the solution:
for sets thumbs, the string for CRC calculation is:
"videodb://1/7/" + Sets.IdSet + "/"

Thank to http://passion-xbmc.org/ Wink
XBNE : XBMC Video DataBase / Nfo Editor
Download - Forum - Donate
Reply

Logout Mark Read Team Forum Stats Members Help
Where does the thumb CRC for sets come from?0