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)
def _do(self, param={}): common_xbmc.display_info(common_xbmc.get_translation('30551')) self.videoobmc.update() common_xbmc.display_info(common_xbmc.get_translation('30552'))
def download(self, _id, backend): dl_dir = common_xbmc.get_settings('downloadPath') self.videoobmc.download(_id, dl_dir if dl_dir else common_xbmc.get_addon_dir(), backend) common_xbmc.display_info(common_xbmc.get_translation('30302'))
def download(self, _id, backend): dl_dir = common_xbmc.get_settings('downloadPath') self.videoobmc.download( _id, dl_dir if dl_dir else common_xbmc.get_addon_dir(), backend) common_xbmc.display_info(common_xbmc.get_translation('30302'))