def __init__(self, tivoId, server, attr): Asset.__init__(self, 'TivoVideo') self.details = attr['Details'] self.links = attr['Links'] self.tivoId = tivoId self.server = server self.attr['server'] = server.id self.attr['showid'] = self.showId() self.attr['programid'] = self.programId() if 'Title' in self.details: self.attr['title'] = self.details['Title']
def __init__(self, type, filename): Asset.__init__(self, type) self.filename = filename
def __init__(self, attr): Asset.__init__(self, 'TivoServer') self.resetAttrs(attr)
def get_status_asset(self,status): from base import Asset asset = Asset(ip4="127.0.0.1") asset.force_status(status) return asset