Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xeno-Canto support #20

Merged
merged 4 commits into from
Mar 12, 2024
Merged

Xeno-Canto support #20

merged 4 commits into from
Mar 12, 2024

Conversation

drwilkins
Copy link
Collaborator

Minor tweak to allow pasting the URL of a Xeno-Canto recording page as the soundFile parameter for prep_static_ggspectro(). Uses warbleR::query_xc() to access the filename and download.

Just soundFile to the URL of a specific recording and it downloads it using the URL/download hack. Not using the API per se, but it works and imports the file with the XC_RecNumber.mp3 pattern. Also added logic to not redownload it if it's found.
…per query using warbleR. Now works for MP3s and WAVs and the user only needs to provide the URL to the recording page as the soundFile
@maRce10 maRce10 merged commit 37cedc2 into master Mar 12, 2024
7 checks passed
@maRce10 maRce10 deleted the matt-2024-fixes branch March 12, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants