Esempio n. 1
0
 def title(self):
     if self.builder:
         if config.use_filename() or not self.builder._title or self.builder._title.startswith('Title'):
             return os.path.splitext(os.path.basename(self.dict_path))[0]
         else:
             return self.builder._title
     else:
         return os.path.splitext(os.path.basename(self.dict_path))[0]
Esempio n. 2
0
 def title(self):
     if config.use_filename():
         return os.path.basename(self.dict_path)[:-4]
     else:
         self.builder._title = self.builder._title.strip().decode('utf-8')
         return os.path.basename(
             self.dict_path
         )[:-4] if not self.builder._title or self.builder._title.startswith(
             'Title') else self.builder._title
Esempio n. 3
0
 def title(self):
     if config.use_filename():
         return os.path.basename(self.dict_path)[:-4]
     else:
         return self.builder.ifo.bookname.decode('utf-8')
Esempio n. 4
0
 def title(self):
     if config.use_filename() or not self.builder.ifo.bookname:
         return os.path.splitext(os.path.basename(self.dict_path))[0]
     else:
         return self.builder.ifo.bookname.decode('utf-8')