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!
Scraper setup questions
MaDDoGo
Senior Member Posts: 244 Joined: Sep 2009 Reputation: 1 Location: Sabadell (Barcelona) |
2011-01-06 21:22
Post: #1
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2011-01-07 10:17
Post: #2
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 Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
MaDDoGo
Senior Member Posts: 244 Joined: Sep 2009 Reputation: 1 Location: Sabadell (Barcelona) |
2011-01-07 17:39
Post: #3
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?
(This post was last modified: 2011-01-07 19:33 by MaDDoGo.)
|
| find quote |

If the condition depends of various settings what I have to do?
Search
Help