aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
blob: e7876e41e3387fdfca256be5bc7d3dc981fd8130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class DVDProject:
	def __init__(self):
		self.titles = [ ]
		self.target = None
		self.name = _("New DVD")

	def addService(self, service):
		import DVDTitle
		t = DVDTitle.DVDTitle()
		t.source = service

		from enigma import eServiceCenter, iServiceInformation
		serviceHandler = eServiceCenter.getInstance()

		info = serviceHandler.info(service)
		descr = info and " " + info.getInfoString(service, iServiceInformation.sDescription) or ""
		t.name = info and info.getName(service) or "Title" + descr

		self.titles.append(t)
		return t