Exemple #1
0
	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']
Exemple #2
0
 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']
Exemple #3
0
	def __init__(self, type, filename):
		Asset.__init__(self, type)
		self.filename = filename
Exemple #4
0
	def __init__(self, attr):
		Asset.__init__(self, 'TivoServer')
		self.resetAttrs(attr)
Exemple #5
0
 def get_status_asset(self,status):
     from base import Asset
     asset = Asset(ip4="127.0.0.1")
     asset.force_status(status)
     return asset
Exemple #6
0
 def __init__(self, type, filename):
     Asset.__init__(self, type)
     self.filename = filename
Exemple #7
0
 def __init__(self, attr):
     Asset.__init__(self, 'TivoServer')
     self.resetAttrs(attr)