OpenMediaCenter/api/extractvideopreviews.php
Lukas Heiligenbrunner d799cdd610 remove symlinks before update
set timeout for videoextraction
only insert db entries if not already available
2020-10-04 01:00:52 +02:00

19 lines
433 B
PHP
Executable File

<?php
require_once './src/Database.php';
require_once './src/TMDBMovie.php';
require_once './src/SSettings.php';
require_once './src/VideoParser.php';
// allow UTF8 characters
setlocale(LC_ALL, 'en_US.UTF-8');
set_time_limit(3600);
$vp = new VideoParser();
$vp->writeLog("starting extraction!!\n");
$sett = new SSettings();
// load video path from settings
$scandir = "../" . $sett->getVideoPath();
$vp->extractVideos($scandir);