Replies: 1 comment
-
Thanks, that seems to be a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, I'm so happy to have found this repo! It's really great that BirdNet-Pi will live on!
I was wondering if this is problem is experienced by anyone else?
I added the Flickr API yesterday, so I now have inline images associated with detections. When the image is clicked, you get a popup window with an expanded image including 3 URLs - Image link, Author link, and License URL. The 'Image link' is always reported by Flickr as 'not found'.
By playing around a bit, I determined that the URL is generated incorrectly - the image is not at AuthorURL+ID. See below for samples.
I traced it back to PHP in overview.php and todays_detections.php. Here's the code I changed to correct it:
$modaltext = $flickr_cache["author_url"] . "/" . $flickr_cache["id"];
//next line added by me to correct Flickr 'Image Link' URL
$modaltext = str_replace("people", "photos", $modaltext);
It works... kinda. There must be some caching or something else going on. I manually edit those PHP files (via file manager), save it, and then do a system reboot, but sometimes the incorrect version is still present. I'm kinda confused, but I'm new to this.
Working URL - After code change
Incorrect URL - Before code change
Beta Was this translation helpful? Give feedback.
All reactions