Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 16, 2024
1 parent 7fa306a commit 8f038aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/BulkEmbed/save.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,15 @@ function ISO8601ToDuration($ISO8601)
try {
$resp = $videos->save(true);
} catch (Exception $exc) {
_error_log("First save attempt failed: " . $exc->getMessage());
try {
$resp = $videos->save(true);
} catch (Exception $exc) {
continue;
_error_log("Second save attempt failed: " . $exc->getMessage());
continue; // Skip to the next video if saving fails
}
}


if (!empty($resp) && !empty($obj->playListId)) {
$playList = new PlayList($obj->playListId);
Expand Down

0 comments on commit 8f038aa

Please sign in to comment.