mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
7fa306a6d4
commit
8f038aaaac
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue