EPGSearch: allow preconfiguring sources to be searched, improve setup skin
[enigma2-plugins.git] / epgsearch / src / __init__.py
1 # Config
2 from Components.config import config, ConfigSet, ConfigSubsection, ConfigText, ConfigNumber, ConfigYesNo, ConfigSelection
3
4 class SearchType:
5         ASK = "ask"
6         TITLE = "title"
7         TITLE_DESCRIPTION = "title_description"
8         CHOICES = {
9                 ASK : _("Always Ask"),
10                 TITLE : _("Title only"),
11                 TITLE_DESCRIPTION : _("Title and Description"),
12         }
13
14 config.plugins.epgsearch = ConfigSubsection()
15 config.plugins.epgsearch.history = ConfigSet(choices = [])
16 config.plugins.epgsearch.history_length = ConfigNumber(default = 10)
17 config.plugins.epgsearch.add_search_to_epg = ConfigYesNo(default = True)
18 config.plugins.epgsearch.search_type = ConfigSelection(choices=SearchType.CHOICES, default=SearchType.ASK)