This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.txt
118 lines (101 loc) · 4.27 KB
/
config.sample.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# rename me to config.txt
# 0 is MSSQL | 1 is mysql
$usemysql = 1;
# optimize mysql tables every X hours (0 for disabling)
$optimizemysqltables = 2;
# DB Settings
# for MySQL simply insert the hostname / IP
$dbhost = 'HOMESERVER-PC\SQLEXPRESS';
$dbname = 'MpTvDb';
# for mysql root | for mssql sa
$dbuser = 'sa';
# standard password when mediaportal has installed the Database Engine is MediaPortal
$dbpw = 'MediaPortal';
# 4tr (4therecord)
$use4tr = 0; # on/off
# we use the database data from above
$dbname_4tr = 'fortherecord';
# activate search on wunschliste.de / only GERMAN
$use_wunschliste = 1;
# activate search on fernsehserien / only GERMAN
$use_fernsehserien = 1;
# activate search on thetvdb.com
$use_tvdb = 1;
# TVDB (www.thetvdb.com) API Key - NOT Account Identifier
# you can create your own API key in your account on www.thetvdb.com
# if you leave this field blank it would use a global API key
# so this is optional
$tvdb_apikey = '';
# you can also use multiple languages by splitting the iso codes with a |
$thetvdb_language = 'de|en';
# episodename substitutions
# here you can define substitiutions for your episodenames
# f.e. "1" to "one"
# f.e. "part1" to "one"
# this avoids problems with different namings
# you can use regex on the left side here if you want
%episode_stubstitutions = (
'Teil\s+\(1\)' => '(1)',
'Teil\s+\(2\)' => '(2)',
'Teil\s+\(3\)' => '(3)',
'Teil\s+\(4\)' => '(4)',
'Teil\s+1' => '(1)',
'Teil\s+2' => '(2)',
'Teil\s+3' => '(3)',
'Teil\s+4' => '(4)',
' & ' => ' und ',
' and ' => ' und ',
);
# SQLite database backup every X hours (NOT MSSQL or MySQL)
$db_backup = 1; # on/off
$db_backup_interval = 2; # in hours
$db_backup_delete = 48; # delete backups older than
$db_backup_sqlite_path = 'O:\\DB\\*.db3';
$db_backup_sqlite_backuppath = 'O:\\DB\\backup';
# remove recordings which are also listed at tvseries
$cleanup_recordings_tvseries = 1; # on / off
$cleanup_recordings_tvseries_db = 'O:\\DB\\TVSeriesDatabase4.db3';
$cleanup_recordings_tvseries_db_mainpath = '\\\\192.168.178.100\\mp.data\\VID\\';
$cleanup_recordings_tvseries_recordings_mainpath = 'O:\\VID\\';
# delete recordings from the recordings DB of MP when the file does not exist
$cleanup_recordingdb = 0; # on / off
# delete empty folders and deletes .xml, .txt, .logo, .jpg files (if the .ts file is removed) in recordingdir
$cleanup_recordingfiles = 0;
# video file extensions
@cleanup_recordingdir_ext = ('.ts', '.avi', '.mkv');
# folder where the recordings are stored
$cleanup_recordingdir = 'O:\\VID';
# use thumb generation?
$thumbs = 0;
# create thumbs for the following folders and subfolders
@thumb_dirs = ('O:\\VID', 'D:\\VID123\\ABC');
# try to crrate thumb for tiles with the following file extensions
@thumb_fileext = ('.ts', '.avi', '.mkv');
# use the following programs to create thumbs
@thumb_progs = ( {
# internal MTN
prog => 'mtn\\mtn.exe -D 6 -B 420 -E 600 -c 1 -r 1 -s 300 -t -i -w 0 -n -P "${filename}"',
thumb_filename => '${basedir}\\${basefile}_s.jpg',
timeout => 10,
},
{
# external videoLAN
prog => '"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --video-filter scene -V dummy --intf dummy --dummy-quiet --scene-width=-1 --scene-height=576 --scene-format=jpg --scene-replace --scene-ratio 24 --start-time=600 --stop-time=601 --scene-replace --scene-prefix=thumb --scene-path="O:\\" "${filename}" "vlc://quit"',
thumb_filename => 'O:\\thumb.jpg',
timeout => 3,
},
{
# internal MTN variant 2
prog => 'mtn2\\mtn.exe -D 8 -B 0 -E 0 -c 1 -r 1 -s 60 -t -i -w 0 -n -P "${filename}"',
thumb_filename => '${basedir}\\${basefile}_s.jpg',
timeout => 10,
}
);
# you can setup here the running of external commands every X hours
# example:
# run C:\path\tool every 5 hours and C:\path2\tool2 every 10 hours
# @run_external_commans = ('C:\\path\\tool|5', 'C:\\path2\\tool2|10');
@run_external_commans = ();
# after each run sleep for x seconds
$sleep = 60;
1;