Scraper setup questions - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: Scraper setup questions (/showthread.php?tid=89777) |
Scraper setup questions - MaDDoGo - 2011-01-06 Hi, I'm editing the filmaffinity scraper and I have a question. I want to disable some options if one is selected. For example, I want to disable themoviedb, IMPAwards and other cover scrapers if Download only filmaffinity is selected. Can I do this? Thanks! - spiff - 2011-01-07 sure you can, you can either disable or hide settings using enable="eq(<offsettosettingyouwantoconditionon>,true)" if it's a bool, or ,<valueofsetring> if it's a string. if you want to check for a blank string you can use enable="!eq(-1,)" here we are disabled if the setting above is blank. if you prefer, you can hide settings using the 'visible' attribute, same syntax. see e.g. the utub plugin - MaDDoGo - 2011-01-07 Thanks for the fast answer If the condition depends of various settings what I have to do? Here's the settings.xml: Quote:<settings> I want to disable all EnableFanart, IMPAwards, MoviePoster, TMDB and IMDB posters if the setting onlyfilmaffinity is true and disable onlyfilmaffinity if anyone of the others are true (I hope you understand, because I explain really poor and worse in English ) Programing Explanation: If (EnableFanArt OR EnableIMPAwards OR EnableMoviePosterDB OR EnableTMDBPoster OR EnableIMDBPosters OR EnableFilmAffinityPosters) == True then OnlyFilmAffinity = False Else if OnlyFilmAffinity == True then EnableFanArt AND EnableIMPAwards AND EnableMoviePosterDB AND EnableTMDBPoster AND EnableIMDBPosters AND EnableFilmAffinityPosters= False Thanks for advance PS: There is any way to force configuration after installing or updating the addon with new settings? I say this because in this new version I'm working I added a trailer's choice and I want to force configure the scraper after installing it, is this possible? |