paddycarey/script.extrafanartdownloader — Issue #27: Slider for Min Fanart rating and max Fanart download allows invalid values
Author: pred2k
Created: 2011-10-26 07:58:55+00:00
State: open

I started the script (current version of the Addon Repository) and configured it. I also changes the values for **Min Fanart rating** and **Max Fanart Downloads**. Because i used the mouse it was impossible to set a integer value. It only worked then i used the arrow keys. If i set values like 10.820644, i got error messages after hitting **OK**.
My suggestions:
if possible use a slider that allows only integer or
use a round function before saving the values

```09:43:20 T:5428 M:4294967295 NOTICE: -->Python Interpreter Initialized<--
09:43:20 T:5428 M:4294967295 ERROR: Error Type: exceptions.ValueError
09:43:20 T:5428 M:4294967295 ERROR: Error Contents: invalid literal for int(): 10.820644
09:43:20 T:5428 M:4294967295 ERROR: Traceback (most recent call last):
File "C:\Users\Gamer\AppData\Roaming\XBMC\addons\script.extrafanartdownloader\default.py", line 365, in ?
Main()
File "C:\Users\Gamer\AppData\Roaming\XBMC\addons\script.extrafanartdownloader\default.py", line 61, in __init__
if self.initialise():
File "C:\Users\Gamer\AppData\Roaming\XBMC\addons\script.extrafanartdownloader\default.py", line 111, in initialise
self.limit_extrafanart_max = int(__addon__.getSetting("limit_extrafanart_max").rstrip('0').rstrip('.'))
ValueError: invalid literal for int(): 10.820644
09:43:45 T:4436 M:4294967295 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
09:43:52 T:3472 M:4294967295 NOTICE: -->Python Interpreter Initialized<--
09:43:52 T:3472 M:4294967295 ERROR: Error Type: exceptions.ValueError
09:43:52 T:3472 M:4294967295 ERROR: Error Contents: invalid literal for int(): 5.031747
09:43:52 T:3472 M:4294967295 ERROR: Traceback (most recent call last):
File "C:\Users\Gamer\AppData\Roaming\XBMC\addons\script.extrafanartdownloader\default.py", line 365, in ?
Main()
File "C:\Users\Gamer\AppData\Roaming\XBMC\addons\script.extrafanartdownloader\default.py", line 61, in __init__
if self.initialise():
File "C:\Users\Gamer\AppData\Roaming\XBMC\addons\script.extrafanartdownloader\default.py", line 112, in initialise
self.limit_extrafanart_rating = int(__addon__.getSetting("limit_extrafanart_rating").rstrip('0').rstrip('.'))
ValueError: invalid literal for int(): 5.031747```