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) })
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)})