예제 #1
0
파일: actions.py 프로젝트: juliaL03/weboob
 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
파일: actions.py 프로젝트: juliaL03/weboob
 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
파일: actions.py 프로젝트: juliaL03/weboob
 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
파일: actions.py 프로젝트: juliaL03/weboob
    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
파일: actions.py 프로젝트: juliaL03/weboob
 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)