-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.php
73 lines (71 loc) · 4.06 KB
/
configuration.php
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
<?php
/**
+-------------------------------------------------------------------------+
| RubioTV - A domestic IPTV Web app browser |
| Version 1.5.1 |
| |
| This program is free software: you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation. |
| |
| This file forms part of the RubioTV software. |
| |
| If you wish to use this file in another project or create a modified |
| version that will not be part of the RubioTV Software, you |
| may remove the exception above and use this source code under the |
| original version of the license. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program. If not, see http://www.gnu.org/licenses/. |
| |
+-------------------------------------------------------------------------+
| Author: Jaime Rubio <jaime@rubiogafsi.com> |
+-------------------------------------------------------------------------+
*/
namespace RubioTV\Framework;
defined('_TVEXEC') or die;
class TVConfig {
public $sitename = 'RubioTV';
public $live_site = 'https:/yoursite.com/tv';
public $log_path = '/path/to/your/site/log';
public $tmp_path = '/path/to/your/site/tmp';
public $debug = false;
public $password = 'change-me-with-the-md5-hash-of-your-password'; //md5 hash of the plain password
public $use_sef = true;
public $use_cache = true;
public $use_autolog = true;
public $key = 'change-me-with-a-random-key'; //random key used for the encryption of the sessions (anti-flood)
public $menu = ['dtv', 'categories', 'languages', 'countries', 'custom', 'guides', 'radio'];
public $list_limit = 36;
public $theme = 'default';
public $dtv = [
'type' => 'tvheadend',
'host' => 'https://yoursite.com/coreelec',
'channels' => '/playlist/channels',
'stream' => '/stream/channel',
'xmltv' => '/xmltv/channels',
'cache' => '/imagecache',
'filename' => 'coreelec'
];
public $links = [
'MySite1' => 'https://yoursite1.com/',
'MySite2' => 'https://yoursite2.com/',
];
public $epg = [
'enabled' => true,
'debug' => true,
'notify' => false,
'dir' => '/path/to/your/site/epg',
'exec' => 'npm run grab --prefix=%s -- --channels=%s --output=%s --days=%s',
'lock' => 300, /* seconds */
'limit' => 5, /* channels to process in a raw */
'expiry' => 15, /* days */
'offset' => 0, /* hours */
'secret_key' => 'change-me-with-a-long-random-key', /* change this */
];
}