Set actor thumb in python
#16
Yes, usually each movie has it's own dir (usually :-)). Look at ListItem.FileNameAndPath and consorts: http://kodi.wiki/view/InfoLabels

For this approx, forget userdata. You need to work in the dir where your movies live. Use a testPC/installl of Kodi so you can screw up that setup, not your whole library.

You will need to add data to the .nfo file while preserving previous data, and then rescrape the .nfo with the new data.

Should work, didn't say it is easy or solvable with 5 lines of code...

For more info about .nfo files:
http://kodi.wiki/view/NFO_files
http://kodi.wiki/view/NFO_files/movies
http://kodi.wiki/view/NFO_files/tvshows
http://kodi.wiki/view/NFO_files/musicvideos
... the wiki is your friend
Add-on : Bluray iso utils Rewrite of BR_iso_enhancements
Add-on : BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Reply
#17
I can create the nfo file, and rescape it ...

In Library with a fake movie file with the same name of the nfo file it shows the actors thumbnail correctly, and the data is also inside the database.

The problem is that this values (that is in the database correctly added) are not used in the addon when this actor is in the cast list.

I think this only works with local files
Reply
#18
So it works with local files?

How exactly are you using this data in your addon?
Add-on : Bluray iso utils Rewrite of BR_iso_enhancements
Add-on : BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Reply
#19
This data must be showed with stream files scraped from a website, all the elements of itemlist are created dinamically when this website is scraped. The problema is that you can't add the "thumbnail" to each actor and even if is in the database is not showed.

In the addon if this stream video is dowloaded, (in a folder added as source in library) data is loaded well.

Actual situation:
- in a folder added to library there is a movie file.
- metadata is scraped and actor thumbs are showing without problems.
- In an addon there's a stream url that is the same movie, all the metadata is set from the addon, including cast names.
- It think that would be logical that this cast thumbnails, shown in local files should be also display where the "actor" names apears, but it isn't...

I guess there's not enough to get the "same actor name", even if its thumbnail is just "asigned into database", It also file location must be also in the same database asociated to this "stream movie" and linked to each actor.

In this scenario the idea of "create nfo" files to add this data have the problem that there's no a "file" present in any place to be "scraped" even from nfo files.


I have added a feature request... (just in case that we are lucky hehe)
http://forum.kodi.tv/showthread.php?tid=287683
Reply
#20
Bump... trying to add cast to my video addon... added cast and role fine but I have not read how to add the thumbnails. 

using the json query I do see thumbnails are now available I am just not sure how to add them and cant find any docs about adding the thumbnails.

and help will be welcomed
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#21
Found it setcast does the trick
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply

Logout Mark Read Team Forum Stats Members Help
Set actor thumb in python0