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

downloads WAV files with MP3 extension #11

Closed joshctaylor closed 8 months ago

joshctaylor commented 11 months ago

All downloaded files appear to get a .mp3 filename regardless of their format. I've checked the media file headers, this example is for sure a WAV.

I download datasets for Southern Hairy-legged Myotis using:

xeno-canto -dl Southern Hairy-legged Myotis

which among others downloads the file: 819608.mp3

If I use the web api for the same file: https://xeno-canto.org/838712/download

I get a file with the correct WAV extension. XC819608 - Southern Hairy-legged Myotis - Myotis keaysi.wav

ntivirikin commented 8 months ago

Fix is in now, will update with new version when sono branch is finished development. Thank you!