2020-05-16 20:18:32 +02:00
|
|
|
<?php
|
2020-10-26 20:59:48 +01:00
|
|
|
require_once __DIR__ . '/src/Database.php';
|
|
|
|
require_once __DIR__ . '/src/TMDBMovie.php';
|
|
|
|
require_once __DIR__ . '/src/SSettings.php';
|
|
|
|
require_once __DIR__ . '/src/VideoParser.php';
|
2020-06-03 18:26:30 +02:00
|
|
|
|
2020-07-23 22:20:43 +02:00
|
|
|
// allow UTF8 characters
|
|
|
|
setlocale(LC_ALL, 'en_US.UTF-8');
|
2020-10-04 01:00:52 +02:00
|
|
|
set_time_limit(3600);
|
2020-07-23 22:20:43 +02:00
|
|
|
|
2020-09-23 18:43:50 +00:00
|
|
|
$vp = new VideoParser();
|
|
|
|
$vp->writeLog("starting extraction!!\n");
|
2020-06-04 22:19:18 +02:00
|
|
|
|
2020-09-23 18:43:50 +00:00
|
|
|
$sett = new SSettings();
|
2020-05-23 23:47:15 +02:00
|
|
|
|
2020-07-18 01:10:04 +02:00
|
|
|
// load video path from settings
|
2020-10-27 12:48:26 +01:00
|
|
|
$scandir = __DIR__ . "/../" . $sett->getVideoPath();
|
2020-09-23 18:43:50 +00:00
|
|
|
$vp->extractVideos($scandir);
|