Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ocrd_models/ocrd_models/ocrd_mets.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def find_files(self, ID=None, fileGrp=None, pageId=None, mimetype=None, url=None

# Note: why we instantiate a class only to find out that the local_only is set afterwards
# Checking local_only and url before instantiation should be better?
f = OcrdFile(cand, mets=self)
f = OcrdFile(cand, mets=self, loctype=cand.get('LOCTYPE'))

# If only local resources should be returned and f is not a file path: skip the file
if local_only and not is_local_filename(f.url):
Expand Down