2017-11-03, 11:41
(2017-11-02, 15:28)ZERO Wrote: Ok, I have created an updated version where background images are loaded all from the single var it will correctly load fan art and extra fan art.
http://www.ibisgaming.com/media/16x9.zip
Please test and let me know how that works. This should permanently resolve the problem.
Well, just one problem. Artwork Beef won't work without the 4420 fadelabel (it uses different addresses fanart1, etc.), so the line of code that you deleted needs to stay in that place, right before the Skin Helper code. I did add a condition especially for this sort of case so that if you disable or delete the add-on, it should not trigger it's mechanism at all? Perhaps you still have it installed? The problem is that there isn't a straightforward way of distinguishing between what you do locally and what one of the downloaders does, to the point that most downloaders will confuse things if you try and use them next to the local artwork. But the add-on check is one thing that I know works reliably in Kodi - all of the things you mentioned shouldn't matter since it only takes one invalid condition to block off the fadelabel.
(Incidentally, and this is off-topic which is why it's bracketed, but Artwork Beef solves the episode level artwork issue by having all the images registered natively within the Kodi database as fanart1, fanart2, etc, which makes it work on all levels. I think it's achieved by having a universal list of fanart sequences applied to every item through some database mechanic. There is a compatibility option somewhere to retrieve local artwork if it exists and prefer it to all else. When it's checked, then Artwork Beef should perform the task that Script Toolbox did, scraping and translating those local images into its own format for display. The only reason I did not suggest it earlier on is that I believe the add-on currently supports only 20 images per library item, but I presume that the developer would be inclined to add more if I/we ask him, if that's something that appeals to you?)
As for the mess with the conditions, I'm really confused. I always presumed that Kodi had a way of reliably checking this stuff. Perhaps it's due to the fact that exrafanart is an added feature and not native in the database? Regardless, from what I see I think that your new code will work nicely. One thing I did notice though is that there is no longer a need for separate rotation includes inside the viewtype multiimage controls since we properly integrated the fadelabels into the main code. If everything goes correctly, they should simply take the fadelabel includes and apply them. I've deleted them and everything seems just fine. Anyway, I'm hoping that if you simply freeze Artwork Beef that the conntrollabel 4420 line could remain in place without any further consequences. If not, then it's back to the drawing board. xD