hash thumb for season tvshow - 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: hash thumb for season tvshow (/showthread.php?tid=62545) |
hash thumb for season tvshow - slash - 2009-11-26 Hi, I'm currently working on the tvshow part of this web tool here I' able to retreive the hash from a movie a tvshow and an episode, but it seems that I cant' find out what to pass to the crc32 function to get the season cover I tried with no success : <path to tvshow>/season 1/ <path to tvshow>/1/ Any help would be appreciated. - spiff - 2009-11-26 CFileItem::GetCachedSeasonThumb() - slash - 2009-11-26 Thanks spiff for the quick response. Actually I need to do this is Javascript : I have the crc32 in js. The string to pass to the hashing function would be : "season"+ <path_of_season> + GetLabel() I have the <path_of_season> from the DB.Any idea what the GetLabel() refers to ? Thanks again - spiff - 2009-11-26 it would be 'Season 1' in english, i.e. the label that shows in the gui. yes, this is poo, i know, but i was DEAD tired 3 years ago when i added it and uhm, well, never got around to remedying it. - ppic - 2009-11-26 getlabel is "seasonx" where x is the season number , seaon need to be translate, don't remember the language code. see fileitem.py in my plugins, you'll see differents case for thumbnails. - slash - 2009-11-26 Got it working !!! Thanks guys for your help. - kolja - 2010-05-16 Related question ... what string is crc32'ed for the thumb for a movie set? Could not find any special function related to movie sets in CFileItem. - kolja - 2010-05-16 Never mind, I found it. The crc32 input string is: Code: "videodb://1/7/" + <idSet> + "/" And <idSet> comes from the table "sets" in database MyVideos: Code: echo "select * from sets;" | sqlite3 ~/.xbmc/userdata/Database/MyVideos34.db This is poo, too :-) |