• Aryan Noshirvani's avatar
    Fix download_url hardcoded to port 8000 regardless of instance · 13247d86
    Aryan Noshirvani authored
    Both /music/upload and /remix/{job_id} (fixed in the previous commit's
    diff already for remix.py) built their download_url from a hardcoded
    "http://91.234.52.134:8000" - meaning the dev instance (port 8001)
    was handing back main's port for files it had actually produced. It
    happened to still work, since both instances share the same physical
    /root/antigrav-stax-audio/downloads directory, but it's semantically
    wrong and would break the moment that's no longer true.
    
    Found via the same real-browser Playwright pass as the previous fix -
    the Tag & Identify panel's result audio player pointed at port 8000
    while running against the port 8001 instance. Now derives the URL
    from request.base_url instead, so it always reflects whichever host
    actually served the request.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
    13247d86
Name
Last commit
Last update
..
routers Loading commit data...
static Loading commit data...
__init__.py Loading commit data...
main.py Loading commit data...