From 8f038aaaac32ed021637986dd35a4ceb5c72b89e Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 16 Oct 2024 19:19:56 -0300 Subject: [PATCH] Update --- plugin/BulkEmbed/save.json.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/BulkEmbed/save.json.php b/plugin/BulkEmbed/save.json.php index 02fbed607f06..a05299b81b16 100644 --- a/plugin/BulkEmbed/save.json.php +++ b/plugin/BulkEmbed/save.json.php @@ -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);