2021-07-08, 06:50
I have been holding off upgrading to v19 from v18. Mostly due to one feature that seems to act oddly for me now. Specifically 'fanart' and what used to be called extra-fanart. It only acts oddly because apparently I was using the 'file' method by way of artwork beef. As that has gone away. Which is fine. But it leaves me with any new videos I add only getting 1 fanart on initial scrap of a video unless I add extra files in, instead of the dozen or so with rotation in the skin I am using.
From what I can see it looks like internally, if the skin supports it, the skins expect to see fanartXX in the art table in the database. The user is expected to setup any extra items to be scrapped in by use setting the artwork level to custom and adding extra 'fanart1' 2 3 and so on. That seems fair enough, and easier than the old way of putting it in the xml properties file.
Externally it looks like there are currently no scrapers that pull data into this internal format? Currently it looks like out of the box you can only get the fanartXX bits if you create files side-by-side with the media files. As per https://kodi.wiki/view/Artwork_types#fanart.23 and https://kodi.wiki/view/Movie_artwork
From my looking at the code I can not tell if the scraper is supposed to create the fanartXX bits to be passed in through setAvailableFanart (or other)? Or if the internal code in CVideoInfoScanner::GetArtwork is supposed to rip apart m_fanart and create the numbered fanart bits.
My question is what is expected? From my experimentation with the current code and the current TMDB python scraper it looks like the whole fanart list is passed in as a single python list object. However, only the very first item will be considered as fanart on an initial scrape of a video, from what I see in the internal xbmc code. As CVideoInfoScanner::GetArtwork will only look at the '0' item in that list. Creating a singular item fanart and not the fanartXX bits.
For my experiment I added a bit of C++ code to bash in the fanartXX bits from the m_fanart list in the code. But that does not feel right to me.
From what I can see it looks like internally, if the skin supports it, the skins expect to see fanartXX in the art table in the database. The user is expected to setup any extra items to be scrapped in by use setting the artwork level to custom and adding extra 'fanart1' 2 3 and so on. That seems fair enough, and easier than the old way of putting it in the xml properties file.
Externally it looks like there are currently no scrapers that pull data into this internal format? Currently it looks like out of the box you can only get the fanartXX bits if you create files side-by-side with the media files. As per https://kodi.wiki/view/Artwork_types#fanart.23 and https://kodi.wiki/view/Movie_artwork
From my looking at the code I can not tell if the scraper is supposed to create the fanartXX bits to be passed in through setAvailableFanart (or other)? Or if the internal code in CVideoInfoScanner::GetArtwork is supposed to rip apart m_fanart and create the numbered fanart bits.
My question is what is expected? From my experimentation with the current code and the current TMDB python scraper it looks like the whole fanart list is passed in as a single python list object. However, only the very first item will be considered as fanart on an initial scrape of a video, from what I see in the internal xbmc code. As CVideoInfoScanner::GetArtwork will only look at the '0' item in that list. Creating a singular item fanart and not the fanartXX bits.
For my experiment I added a bit of C++ code to bash in the fanartXX bits from the m_fanart list in the code. But that does not feel right to me.