def __init__(self, item): ArchItemInstaller.__init__(self, item['name'], item['xbmc_type']) self.itemId = item['id'] # Id of the server item self.filesize = item['filesize'] # Note could be 0 self.filename = item['orginalfilename'] # Note could be '' self.url = item['downloadurl'] print item
def __init__(self, name, url): ArchItemInstaller.__init__(self) self.itemInfo["name"] = name self.itemInfo["url"] = url self.itemInfo["filename"] = os.path.basename(url.replace("%20", " ")) self.itemInfo["filesize"] = 0 self.itemInfo["raw_item_sys_type"] = TYPE_SYSTEM_ARCHIVE
def __init__( self , item ): ArchItemInstaller.__init__( self, item['name'], item['xbmc_type'] ) self.itemId = item['id'] # Id of the server item self.filesize = item['filesize'] # Note could be 0 self.filename = item['orginalfilename'] # Note could be '' self.url = item['downloadurl'] print item
def __init__( self , name, url ): ArchItemInstaller.__init__( self ) self.itemInfo [ "name" ] = name self.itemInfo [ "url" ] = url self.itemInfo [ "filename" ] = os.path.basename(url.replace( "%20", " " )) self.itemInfo [ "filesize" ] = 0 self.itemInfo [ "raw_item_sys_type" ] = TYPE_SYSTEM_ARCHIVE
def __init__( self , name, type, downloadurl, ftpCtrl ): ArchItemInstaller.__init__( self, name, type ) self.downloadurl = downloadurl self.ftpCtrl = ftpCtrl # FtpDownloadCtrl instance
def __init__( self , path ): ArchItemInstaller.__init__( self ) self.itemInfo [ "raw_item_path" ] = path
def __init__(self, name, type, downloadurl, ftpCtrl): ArchItemInstaller.__init__(self, name, type) self.downloadurl = downloadurl self.ftpCtrl = ftpCtrl # FtpDownloadCtrl instance
def __init__(self, name, type, filename, downloadurl): ArchItemInstaller.__init__(self, name, type) self.downloadurl = downloadurl self.filename = filename