File locked for reading/writing after extracting video metadata
Hi, I have this piece of code in SickRage that creates a parser and extracts metadata from video files to determine height in order to help guess the video quality.
Shortly after the guessing of quality, we then move and rename the file, or on failure we copy and then os.unlink the original.
The issue we are having is that sometimes the file remains opened by hachoir, even though I explicitly del the parser and metadata before returning from the function.
Is there a way to make sure the file is closed?
Related issue on github https://github.com/SiCKRAGETV/sickrage-issues/issues/2534