change _already_sent folder name
This commit is contained in:
parent
3d070c2fac
commit
a147e99a42
7 changed files with 8 additions and 2 deletions
|
@ -85,7 +85,7 @@ $headers = [
|
|||
'Content-Type: application/json'
|
||||
];
|
||||
|
||||
$alreadySentDir = __DIR__ . "/already_sent";
|
||||
$alreadySentDir = __DIR__ . "/_already_sent";
|
||||
|
||||
if (!is_dir($alreadySentDir)) {
|
||||
mkdir($alreadySentDir, 0755, true); // recursive mkdir
|
||||
|
@ -106,7 +106,7 @@ if (isYouTubeLink($link)) {
|
|||
// READECK will accept several times the same URL !
|
||||
// Make sure we don't send it several times by keeping an archive here
|
||||
$hash = md5($link);
|
||||
$filePath = __DIR__ . "/already_sent/{$hash}.txt";
|
||||
$filePath = __DIR__ . "/_already_sent/{$hash}.txt";
|
||||
|
||||
if (file_exists($filePath)) {
|
||||
echo "ℹ️ Already sent: $link\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue