remove symlinks before update
set timeout for videoextraction only insert db entries if not already available
This commit is contained in:
		@@ -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");
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user