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