1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-10-16 19:19:56 -03:00
parent 7fa306a6d4
commit 8f038aaaac

View file

@ -108,12 +108,15 @@ if (empty($objo) || ($objo->onlyAdminCanBulkEmbed && !User::isAdmin())) {
try { try {
$resp = $videos->save(true); $resp = $videos->save(true);
} catch (Exception $exc) { } catch (Exception $exc) {
_error_log("First save attempt failed: " . $exc->getMessage());
try { try {
$resp = $videos->save(true); $resp = $videos->save(true);
} catch (Exception $exc) { } 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)) { if (!empty($resp) && !empty($obj->playListId)) {
$playList = new PlayList($obj->playListId); $playList = new PlayList($obj->playListId);