keep running in background so you don't have to watch the transfer actually happening,
[enigma2-plugins.git] / ftpbrowser / src / plugin.py
1 #
2 # POC FTP Browser for Enigma2
3 #
4
5 from FTPBrowser import FTPBrowser
6
7 ftpbrowser = None
8
9 def main(session, **kwargs):
10         global ftpbrowser
11         if not ftpbrowser:
12                 ftpbrowser = session.instantiateDialog(FTPBrowser)
13         session.execDialog(ftpbrowser)
14
15 def Plugins(**kwargs):
16         from Plugins.Plugin import PluginDescriptor
17
18         return [
19                 PluginDescriptor(
20                         name="FTPBrowser",
21                         where = PluginDescriptor.WHERE_PLUGINMENU,
22                         fnc = main
23                 )
24         ]