コード例 #1
0
	def __init__(self):
		self.data = None
		self.services = None
		path = tmppath
		if self.checkPath('/media/cf'):
			path='/media/cf'
		if self.checkPath('/media/usb'):
			path='/media/usb'
		if self.checkPath('/media/hdd'):
			path='/media/hdd'
		self.epgfile = os.path.join(path, 'epg_new.dat')
		self.epg = epgdat.epgdat_class(path, settingspath, self.epgfile)
コード例 #2
0
	def __init__(self):
		self.data = None
		self.services = None
		path = tmppath
		if self.checkPath('/media/cf'):
			path='/media/cf'
		if self.checkPath('/media/usb'):
			path='/media/usb'
		if self.checkPath('/media/hdd'):
			path='/media/hdd'
		self.epgfile = os.path.join(path, 'epg_new.dat')
		self.epg = epgdat.epgdat_class(path, settingspath, self.epgfile)
コード例 #3
0
 def __init__(self):
     self.data = None
     self.services = None
     path = tmppath
     if self.checkPath('/media/cf'):
         path = '/media/cf'
     if self.checkPath('/media/mmc'):
         path = '/media/mmc'
     if self.checkPath('/media/usb'):
         path = '/media/usb'
     if self.checkPath('/media/hdd'):
         path = '/media/hdd'
     if os.path.exists("/var/lib/dpkg/status"):
         from Components.config import config
         self.epgdbfile = config.misc.epgcache_filename.value
         print "[EPGDB] is located at %s" % self.epgdbfile
         provider_name = "Rytec XMLTV"
         provider_priority = 99
         self.epg = epgdb.epgdb_class(
             provider_name, provider_priority, self.epgdbfile,
             config.plugins.epgimport.clear_oldepg.value)
     else:
         self.epgfile = os.path.join(path, 'epg_new.dat')
         self.epg = epgdat.epgdat_class(path, settingspath, self.epgfile)