1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +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 {
$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);