def cover(self):
     filename = self['filelist'].getName()
     short = shortname(filename)
     newshort = short.lower()
     newshort = newshort.replace(' ', '')
     movienameserie = re.sub('e[0-9]{2}', '', newshort.lower())
     covername = '/hdd/bmcover/' + str(movienameserie) + '/backcover.mvi'
     if fileExists(covername):
         self.showiframe.showStillpicture(covername)
         self.mvion = True
     elif self.mvion == True:
         self.showiframe.showStillpicture('/usr/share/enigma2/black.mvi')
         self.mvion = False
	def cover(self):
		filename = self["filelist"].getName()
		short = shortname(filename)
		newshort = short.lower()
		newshort = newshort.replace(" ", "")
		movienameserie = re.sub("e[0-9]{2}","",newshort.lower())
		covername = "/hdd/bmcover/" + str(movienameserie) + "/backcover.mvi"
		if fileExists(covername):
			self.showiframe.showStillpicture(covername)
			self.mvion = True
		else:
			if self.mvion == True:
				self.showiframe.showStillpicture("/usr/share/enigma2/black.mvi")
				self.mvion = False
예제 #3
0
	def cover(self):
		filename = self["filelist"].getName()
		short = shortname(filename)
		newshort = short.lower()
		newshort = newshort.replace(" ", "")
		movienameserie = re.sub("e[0-9]{2}", "", newshort.lower())
		covername = "/hdd/bmcover/" + str(movienameserie) + "/backcover.mvi"
		if fileExists(covername):
			self.showiframe.showStillpicture(covername)
			self.mvion = True
		else:
			if self.mvion == True:
				self.showiframe.showStillpicture("/usr/share/enigma2/black.mvi")
				self.mvion = False