2019-04-10, 15:29
Hi, I want to create a service add-on that auto-play trailers. This is something I have working half via my skin and half via my python script.
But I wish to move this to service-based python addon because I believe it will work better and be more modular.
I wish to 'scrape' trailer result from youtube and assign it a property in tvshow/movie items of kodi's library. The whole idea is doing this on library update and/or cache interval, so when I want to call the player it wouldn't require doing this search each time (multiple requests for same query) and will be fast because we just need to fetch the already set trailer path.
PROBLEM: How can I set a property to kodidb item? If the item is supplied by a plugin I know how-to do that but not for a library-supplied content.
to my understanding, I need to use the json api to achieve this but tvshows don't have 'trailer' param (and even if they did, like movies, i don't want to override the one given by scraper).
So, I'd like having something like ListItem.Property(Trailer), but is that possible?
The only path I see currently is using 'tags' like stinger does for 'aftercredits' etc. but is it really the only way?
But I wish to move this to service-based python addon because I believe it will work better and be more modular.
I wish to 'scrape' trailer result from youtube and assign it a property in tvshow/movie items of kodi's library. The whole idea is doing this on library update and/or cache interval, so when I want to call the player it wouldn't require doing this search each time (multiple requests for same query) and will be fast because we just need to fetch the already set trailer path.
PROBLEM: How can I set a property to kodidb item? If the item is supplied by a plugin I know how-to do that but not for a library-supplied content.
to my understanding, I need to use the json api to achieve this but tvshows don't have 'trailer' param (and even if they did, like movies, i don't want to override the one given by scraper).
So, I'd like having something like ListItem.Property(Trailer), but is that possible?
The only path I see currently is using 'tags' like stinger does for 'aftercredits' etc. but is it really the only way?