Lukas Heiligenbrunner
d799cdd610
set timeout for videoextraction only insert db entries if not already available
19 lines
433 B
PHP
Executable File
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);
|