Nachtzuster / BirdNET-Pi

A realtime acoustic bird classification system for the Raspberry Pi 5, 4B 3B+ 0W2 and more. Built on the TFLite version of BirdNET.
https://birdnetpi.com
Other
172 stars 24 forks source link

Fix : correct minigraphs for names with apostrophs #234

Closed alexbelgium closed 22 hours ago

alexbelgium commented 1 week ago

Proposal to solved https://github.com/Nachtzuster/BirdNET-Pi/issues/233 : minigraphs are empty when searching a species with ' in it's common name as both " " and "'" are replaced with "_" to sanitize urls

Nachtzuster commented 1 week ago

Another ' issue, handling those correctly is hard, it seems :smile:

I'd like to keep the common name there though.

alexbelgium commented 1 week ago

This should be the easiest way : have a specific comname based variable that encodes ' in a manner that is decoded afterwards. This avoids impacting any other functionality.

I've tested the code as working

alexbelgium commented 1 day ago

Thanks very much for the review I'll check during the week!

alexbelgium commented 1 day ago

Works great, thanks