Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Nov 28, 2023
1 parent 901266f commit 9d87452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/AI/receiveAsync.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@
$jsonDecoded->Ai_transcribe_responses = $o->save();

$jsonDecoded->vttsaved = false;
if (!empty($jsonDecoded->transcribe->vtt) && !empty($jsonDecoded->Ai_transcribe_responses)) {
if (!empty($_REQUEST['response']['vtt']) && !empty($jsonDecoded->Ai_transcribe_responses)) {
_error_log('AI: ' . basename(__FILE__) . ' line=' . __LINE__);
//$jsonDecoded->lines[] = __LINE__;
$paths = Ai_transcribe_responses::getVTTPaths($videos_id);
$jsonDecoded->vttsaved = file_put_contents($paths['path'], $jsonDecoded->transcribe->vtt);
$jsonDecoded->vttsaved = file_put_contents($paths['path'],$_REQUEST['response']['vtt']);
}
$jsonDecoded->error = false;
}
Expand Down

0 comments on commit 9d87452

Please sign in to comment.