Example #1
0
    def _get_server_addons(self):
        """loads info about addons from remote repository to remote_addons_dict"""
        log.logDebug("pre update xml")
        self._download_update_xml()
        log.logDebug("post update xml")

        pars = parser.XBMCMultiAddonXMLParser(self.update_xml_file)
        self.remote_addons_dict = pars.parse_addons()
Example #2
0
    def _get_server_addon(self, addon, load_again=False):
        """load info about addon from remote repository"""

        if load_again:
            self._get_server_addons()

        if addon.id not in self.remote_addons_dict:
            pars = parser.XBMCMultiAddonXMLParser(self.update_xml_url)
            addon_el = pars.find_addon(addon.id)
            self.remote_addons_dict[addon.id] = pars.parse(addon_el)