-
Aryan Noshirvnai authored
Shazam identification has been failing on prod (network-level block on amp.shazam.com - confirmed DNS-hijacked AND SNI-blocked directly). A proxy tunnel (SSH SOCKS5 -> privoxy -> HTTPS_PROXY env var) was already built and working for exactly this, but shazamio's own aiohttp client builds its session with trust_env left at the default (False), so those env vars were silently ignored. Shazam() accepts an injectable http_client - subclass it to force proxy= onto every request when one's configured; a no-proxy dev machine behaves exactly as before. This matters more now that short 5-second mic-listen clips are involved: AcoustID (the only path that was actually reaching out) matches full tracks reliably but frequently returns zero candidates for a bare 5s clip, which is exactly what Discovery's mic button sends. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
f485f7ae
| Name |
Last commit
|
Last update |
|---|---|---|
| alembic | ||
| deploy | ||
| scripts | ||
| src | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| Dockerfile | ||
| README.md | ||
| alembic.ini | ||
| docker-compose.yml | ||
| requirements-remix.txt | ||
| requirements.txt | ||
| setup.sh |