IMDb: fix runtime parsing
[enigma2-plugins.git] / epgrefresh / src / webinterface / EPGRefresh.py
1 from Plugins.Extensions.WebInterface.WebChilds.Toplevel import addExternalChild
2 from Plugins.Extensions.EPGRefresh.EPGRefreshResource import \
3                 EPGRefreshStartRefreshResource, \
4                 EPGRefreshAddRemoveServiceResource, \
5                 EPGRefreshListServicesResource, \
6                 EPGRefreshChangeSettingsResource, \
7                 EPGRefreshSettingsResource, \
8                 EPGRefreshPreviewServicesResource, \
9                 API_VERSION
10
11 root = EPGRefreshListServicesResource()
12 root.putChild("refresh", EPGRefreshStartRefreshResource())
13 root.putChild("add", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_ADD))
14 root.putChild("del", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_DEL))
15 root.putChild("set", EPGRefreshChangeSettingsResource())
16 root.putChild("get", EPGRefreshSettingsResource())
17 root.putChild("preview", EPGRefreshPreviewServicesResource())
18 addExternalChild( ("epgrefresh", root, "EPGRefresh-Plugin", API_VERSION) )
19