コード例 #1
0
 def collect_data(self, book_id):
     mi = self.db.get_metadata(book_id)
     self._book_id_data[book_id] = BookId(mi.title, mi.authors)
     components = get_path_components(self.opts, mi, book_id,
                                      self.path_length)
     self.collected_data[book_id] = (mi, components, {
         fmt.lower()
         for fmt in self.db.formats(book_id)
     })
コード例 #2
0
ファイル: save.py プロジェクト: JimmXinu/calibre
 def collect_data(self, book_id):
     mi = self.db.get_metadata(book_id)
     self._book_id_data[book_id] = BookId(mi.title, mi.authors)
     components = get_path_components(self.opts, mi, book_id, self.path_length)
     self.collected_data[book_id] = (mi, components, {fmt.lower() for fmt in self.db.formats(book_id)})