jbeluch/xbmcswift2 — pull request #65 by dersphere (2012-12-29 21:10:36+00:00)
Title: added optional conversion of value in get_setting()

Example bool:
```xml

```
```python
>>> print repr(plugin.get_setting('test'))
'true'
>>> print repr(plugin.get_setting('test', bool))
True
```

Example enum:
```xml

Resolution
480p
720p
1080p

```
```python
>>> print repr(plugin.get_setting('resolution'))
'2'
>>> resolutions = ('480', '720', '1080')
>>> print repr(plugin.get_setting('resolution', resolutions))
'1080'
```

Of course the same with int and unicode.

regards,
sphere