Commit 604addc3 authored by Aram Verstegen's avatar Aram Verstegen
Browse files

Bit more cleanup

parent e52f2317
......@@ -14,6 +14,7 @@ except:
# This is ok, just don't support _meta.xml and _scandata.xml
# Just error later on when/if the files are actually being passed
parse_item_metadata = None
scandata_parse = None
scandata_get_skip_pages = None
import iso639
......@@ -224,7 +225,7 @@ class EpubGenerator(object):
else:
self.img_stack = None
# Try to find scandata
if os.path.exists(self.scandata_xml_file_path) and scandata_get_skip_pages is not None:
if os.path.exists(self.scandata_xml_file_path) and scandata_parse is not None and scandata_get_skip_pages is not None:
self.scandata = scandata_parse(self.scandata_xml_file_path)
self.skip_pages = scandata_get_skip_pages(self.scandata)
else:
......@@ -522,8 +523,6 @@ class EpubGenerator(object):
)
if 'language' in self.metadata.keys():
page_epub.set_language(self.metadata['language'])
else:
page_epub.set_language('None')
page_epub.add_link(
href='style/style.css', rel='stylesheet', type='text/css'
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment