Reverted temporary debugs and fix failure screenshot
All checks were successful
Push image to registry / build-image (push) Successful in 6m15s
All checks were successful
Push image to registry / build-image (push) Successful in 6m15s
This commit is contained in:
@ -187,12 +187,12 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
|
||||
dump($e->getMessage());
|
||||
} finally {
|
||||
// Removes all videos in the download folder
|
||||
// $files = glob($this->downloadFolder . '*'); // Get all files in the download folder
|
||||
// foreach ($files as $file) {
|
||||
// if (is_file($file)) {
|
||||
// unlink($file); // Delete the file
|
||||
// }
|
||||
// }
|
||||
$files = glob($this->downloadFolder . '*'); // Get all files in the download folder
|
||||
foreach ($files as $file) {
|
||||
if (is_file($file)) {
|
||||
unlink($file); // Delete the file
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -267,9 +267,9 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
|
||||
}
|
||||
else {
|
||||
// Set the filename to the post ID
|
||||
// $newFilename = $this->downloadFolder . $reel->reel_id . ".mp4";
|
||||
// rename($videoInfo->getFilename(), $newFilename);
|
||||
// $videoInfo->setFilename($newFilename);
|
||||
$newFilename = $this->downloadFolder . $reel->reel_id . ".mp4";
|
||||
rename($videoInfo->getFilename(), $newFilename);
|
||||
$videoInfo->setFilename($newFilename);
|
||||
}
|
||||
|
||||
Log::info("Downloaded video: {$videoInfo->getTitle()} : {$videoInfo->getDescription()}");
|
||||
|
Reference in New Issue
Block a user