Poll MusicGPT for full conversion details when webhook omits audio URLs

This commit is contained in:
Troll (Hermes Agent) 2026-08-10 23:13:51 +00:00
parent 5443c464bd
commit 2c11738d2e
2 changed files with 18 additions and 4 deletions

View file

@ -695,6 +695,11 @@ def download_musicgpt_outputs(req, data, version=None):
if saved:
update_request(request_id, **saved)
# If both song versions have been downloaded, advance request status.
from models import get_request_by_id
req = get_request_by_id(request_id)
if req and req.get('song_a_path') and req.get('song_b_path') and req.get('status') not in ('songs_uploaded', 'delivered', 'cancelled'):
update_request(request_id, status='songs_uploaded')
return saved