示例#1
0
 def _do(self, param={}):
     backend = param.get('backend')
     if backend:
         MenuItem('Search', constants.SEARCH, backend=backend).add_to_menu()
         DisplayCollectionMenuAction()._do(param)
     else:
         common_xbmc.end_of_directory(False)
示例#2
0
 def _do(self, param={}):
     backend = param.get('backend')
     if backend:
         MenuItem('Search', constants.SEARCH, backend=backend).add_to_menu()
         DisplayCollectionMenuAction()._do(param)
     else:
         common_xbmc.end_of_directory(False)
示例#3
0
 def _do(self, param={}):
     pattern = common_xbmc.ask_user('',
                                    common_xbmc.get_translation('30001'))
     if pattern:
         for video in self.videoobmc.search(pattern, param.get('backend')):
             MenuItemVideo(video).add_to_menu()
         common_xbmc.end_of_directory(False)
示例#4
0
 def _do(self, param={}):
     _id = param.get('id')
     backend = param.get('backend')
     if _id:
         aThread = Thread(target=self.download, args=(_id, backend))
         aThread.start()
         common_xbmc.display_info(common_xbmc.get_translation('30301'))
     common_xbmc.end_of_directory(False)
示例#5
0
 def _do(self, param={}):
     _id = param.get('id')
     backend = param.get('backend')
     if _id:
         aThread = Thread(target=self.download, args=(_id, backend))
         aThread.start()
         common_xbmc.display_info(common_xbmc.get_translation('30301'))
     common_xbmc.end_of_directory(False)
示例#6
0
 def _do(self, param={}):
     backends = self.videoobmc.backends
     if backends:
         MenuItem(common_xbmc.get_translation('30000'), constants.SEARCH).add_to_menu()
         for backend in backends:
             icon = self.videoobmc.get_backend_icon(backend)
             MenuItem(backend, constants.DISPLAY_BACKENDS, backend=backend, iconimage=icon).add_to_menu()
         common_xbmc.end_of_directory(False)
     else:
         common_xbmc.display_error(" Please install and configure weboob")
示例#7
0
 def _do(self, param={}):
     backends = self.videoobmc.backends
     if backends:
         MenuItem(common_xbmc.get_translation('30000'), constants.SEARCH).add_to_menu()
         for backend in backends:
             icon = self.videoobmc.get_backend_icon(backend)
             MenuItem(backend, constants.DISPLAY_BACKENDS, backend=backend, iconimage=icon).add_to_menu()
         common_xbmc.end_of_directory(False)
     else:
         common_xbmc.display_error(" Please install and configure weboob")
示例#8
0
    def _do(self, param={}):
        path = param.get('path') if 'path' in param.keys() else ''
        collections, videos = self.videoobmc.ls(param.get('backend'), path=path)
        threads = []

        for col in collections:
            MenuItemPath(col).add_to_menu()
        for video in videos:
            aThread = Thread(target=self.add_videos, args=(video, video.backend))
            threads.append(aThread)
            aThread.start()

        for t in threads:
            t.join()

        common_xbmc.end_of_directory(False)
示例#9
0
    def _do(self, param={}):
        path = param.get('path') if 'path' in param.keys() else ''
        collections, videos = self.videoobmc.ls(param.get('backend'), path=path)
        threads = []

        for col in collections:
            MenuItemPath(col).add_to_menu()
        for video in videos:
            aThread = Thread(target=self.add_videos, args=(video, video.backend))
            threads.append(aThread)
            aThread.start()

        for t in threads:
            t.join()

        common_xbmc.end_of_directory(False)
示例#10
0
 def _do(self, param={}):
     pattern = common_xbmc.ask_user('', common_xbmc.get_translation('30001'))
     if pattern:
         for video in self.videoobmc.search(pattern, param.get('backend')):
             MenuItemVideo(video).add_to_menu()
         common_xbmc.end_of_directory(False)