Commit 4a1615bb authored by Derek Fukumori's avatar Derek Fukumori
Browse files

scandata: implement scandata_get_page_count function

parent db6e6d9d
......@@ -64,6 +64,13 @@ def scandata_parse(scandata_path):
return scandata
def scandata_get_page_count(scandata):
"""
Return the number of page elements in a parsed scandata object
"""
return len(scandata.get('book', {}).get('pageData', {}).get('page', []))
def scandata_get_skip_pages(scandata):
"""
Returns a list of indexes of pages in scandata.xml that have
......
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