ntivirikin / xeno-canto-py

Python wrapper for the xeno-canto.org API to aid in downloading and managing recordings.
MIT License
35 stars 14 forks source link

Fix condition to skip existing files instead of breaking the loop #4

Closed bmnds closed 3 years ago

bmnds commented 3 years ago

When downloading a large dataset of audio files, sometimes the process breaks due to network or server issues. I've noticed the -dl option had the code to skip existing files but it wasn't downloading the missing ones.

Inspecting the code I could understand why: it was breaking out of the loop of files.

So I'm sending this small PR to fix this behavior

ntivirikin commented 3 years ago

Thank you for fixing the error, merged the request to the main branch!