mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
download_to_file() returned True when retrbinary transferred 0 bytes without raising an exception. This caused the /cover endpoint to hit the empty file check and raise HTTP 500 instead of retrying or returning 404. Now treats 0-byte downloads as failures, allowing the cover endpoint's retry logic to work and falling back to 404 if all attempts fail.