hash thumb for season tvshow
#1
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.
Reply
#2
CFileItem::GetCachedSeasonThumb()
Reply
#3
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
Reply
#4
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.
Reply
#5
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.
Reply
#6
Got it working !!!

Thanks guys for your help.
Reply
#7
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.
Reply
#8
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 :-)
Reply

Logout Mark Read Team Forum Stats Members Help
hash thumb for season tvshow0