Poll MusicGPT for full conversion details when webhook omits audio URLs
This commit is contained in:
parent
5443c464bd
commit
2c11738d2e
2 changed files with 18 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue