diff --git a/lector/readers/read_fb2.py b/lector/readers/read_fb2.py index 62a4d44..9e9dc8c 100644 --- a/lector/readers/read_fb2.py +++ b/lector/readers/read_fb2.py @@ -89,16 +89,22 @@ class FB2: for j in i: if j.name == 'title': this_title = j.getText(separator=' ') + self.book['book_list'].append( - (this_title, str(i))) + [this_title, str(i)]) # Extract all images to the temp_dir for i in self.xml.find_all('binary'): - this_image_name = i.get('id') - this_image_path = os.path.join(temp_dir, this_image_name) + image_name = i.get('id') + image_path = os.path.join(temp_dir, image_name) + image_string = f'