Private GIT

Skip to content
Snippets Groups Projects
Commit fdca28bd authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Tell hachoir to let go of file handles

parent 8d0ef954
Branches
Tags
No related merge requests found
...@@ -61,6 +61,8 @@ class ImageCache: ...@@ -61,6 +61,8 @@ class ImageCache:
img_metadata = extractMetadata(img_parser) img_metadata = extractMetadata(img_parser)
img_ratio = float(img_metadata.get('width'))/float(img_metadata.get('height')) img_ratio = float(img_metadata.get('width'))/float(img_metadata.get('height'))
img_parser.stream._input.close()
if 0.55 < img_ratio < 0.8: if 0.55 < img_ratio < 0.8:
return self.POSTER return self.POSTER
elif 5 < img_ratio < 6: elif 5 < img_ratio < 6:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment