1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/objects/deletePlaylistCache.php
2024-09-05 16:29:26 -03:00

20 lines
546 B
PHP

<?php
//error_reporting(0);
//php get_videos_paths.php example_video 0
header('Content-Type: application/json');
require_once __DIR__ . '/../videos/configuration.php';
if (!isCommandLineInterface()) {
forbiddenPage('Command line only');
}
if ($argc < 2) {
die("Usage: php objects/deletePlaylistCache.php playlists_id videos_id\n");
}
require_once $global['systemRootPath'] . 'objects/playlist.php';
PlayList::deleteCacheDir($this->id, true);
//_error_log('playlistSort addVideo line=' . __LINE__);
PlayList::removeCache($videos_id);