def getDBDescription(self): text1 = [] if self.dir_size > 0: text1.append(realSize(self.dir_size, 3)) if self.dir_count > 0: text1.append(str(self.dir_count) + ' ' + _("Directories")) if self.mov_count > 0: text1.append(str(self.mov_count) + ' ' + _("Movies")) text1.append(str(self.mov_seen) + ' ' + _("seen")) text1.append(str(self.mov_count - self.mov_seen) + ' ' + _("new")) result = ", ".join(text1) if movieScanner.last_update: result += "\r\n" + _("Last update:") + ' ' + movieScanner.getLastUpdate() return result
def getDBDescription(self): from MovieScanner import movieScanner self.dir_size = movieScanner.movielibrary.getSize() self.dir_count, self.mov_count = movieScanner.movielibrary.getFullCount() text1 = [] if self.dir_size > -1: text1.append(realSize(self.dir_size, 3)) if self.dir_count > 0: text1.append(str(self.dir_count) + ' ' + _("Directories")) if self.mov_count > 0: text1.append(str(self.mov_count) + ' ' + _("Movies")) result = ", ".join(text1) if movieScanner.last_update: result += "\r\n" + _("Last update:") + ' ' + movieScanner.getLastUpdate() return result