remove symlinks before update

set timeout for videoextraction
only insert db entries if not already available
This commit is contained in:
Lukas Heiligenbrunner 2020-10-04 01:00:52 +02:00
parent 3021126e86
commit d799cdd610
3 changed files with 7 additions and 4 deletions

View File

@ -6,6 +6,7 @@ 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");

View File

@ -40,12 +40,12 @@ create table if not exists settings
DarkMode tinyint default 0 null
);
INSERT INTO tags (tag_id, tag_name)
INSERT IGNORE INTO tags (tag_id, tag_name)
VALUES (2, 'fullhd');
INSERT INTO tags (tag_id, tag_name)
INSERT IGNORE INTO tags (tag_id, tag_name)
VALUES (3, 'lowquality');
INSERT INTO tags (tag_id, tag_name)
INSERT IGNORE INTO tags (tag_id, tag_name)
VALUES (4, 'hd');
INSERT INTO settings (video_path, episode_path, password, mediacenter_name)
INSERT IGNORE INTO settings (video_path, episode_path, password, mediacenter_name)
VALUES ('./videos/', './tvshows/', -1, 'OpenMediaCenter');

View File

@ -1,8 +1,10 @@
#!/bin/bash
# enable nginx site
rm /etc/nginx/sites-enabled/OpenMediaCenter.conf
ln -s /etc/nginx/sites-available/OpenMediaCenter.conf /etc/nginx/sites-enabled/OpenMediaCenter.conf
# link general socket to current one
rm /var/run/php-fpm.sock
ln -s /var/run/php/php*-fpm.sock /var/run/php-fpm.sock
# setup database