コード例 #1
0
    def __init__(self, name, url, repoUrl):
        DirItemInstaller.__init__(self)

        self.itemInfo["name"] = name
        # self.itemInfo [ "name" ] = unicode( name, 'ISO 8859-1', errors='ignore')

        self.itemInfo["url"] = url
        self.itemInfo["raw_item_sys_type"] = TYPE_SYSTEM_DIRECTORY

        self._create_title()
        if repoUrl.endswith("/"):
            self.REPO_URL = repoUrl
        else:
            self.REPO_URL = repoUrl + "/"

        # TODO: pass progress bar callback instead
        self.dialog = xbmcgui.DialogProgress()
コード例 #2
0
    def __init__( self , name, url, repoUrl ):
        DirItemInstaller.__init__( self )

        self.itemInfo [ "name" ] = name
        #self.itemInfo [ "name" ] = unicode( name, 'ISO 8859-1', errors='ignore')

        self.itemInfo [ "url" ] = url
        self.itemInfo [ "raw_item_sys_type" ] = TYPE_SYSTEM_DIRECTORY

        self._create_title()
        if repoUrl.endswith( "/" ):
            self.REPO_URL = repoUrl
        else:
            self.REPO_URL = repoUrl + "/"

        #TODO: pass progress bar callback instead
        self.dialog = xbmcgui.DialogProgress()
コード例 #3
0
 def __init__( self , name, type, downloadurl, ftpCtrl ):
     DirItemInstaller.__init__( self, name, type )
     self.downloadurl = downloadurl
     self.ftpCtrl     = ftpCtrl # FtpDownloadCtrl instance
コード例 #4
0
 def __init__(self, name, type, downloadurl, ftpCtrl):
     DirItemInstaller.__init__(self, name, type)
     self.downloadurl = downloadurl
     self.ftpCtrl = ftpCtrl  # FtpDownloadCtrl instance