mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +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 {
|
||||
$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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue