2020-05-16 18:18:32 +00:00
|
|
|
<?php
|
2020-08-12 17:50:25 +00:00
|
|
|
require_once './src/Database.php';
|
|
|
|
require_once './src/TMDBMovie.php';
|
|
|
|
require_once './src/SSettings.php';
|
2020-09-23 18:43:50 +00:00
|
|
|
require_once './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-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);
|