-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-sample.php
58 lines (42 loc) · 1.47 KB
/
config-sample.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
<?php
define('ENVIRONMENT', 'production');
if (ENVIRONMENT === 'development') {
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
} else {
error_reporting(E_ERROR | E_PARSE);
}
set_time_limit(600); /* 5min. max execute time */
define('POORMANSCRON', false); /* index.php will run cron.php on load */
define('SQLITE_FILENAME', 'database.sqlite3');
define('LETTERBOXD_USERNAME', ''); /* write your username here */
define('LETTERBOXD_BASE_URL', 'http://letterboxd.com');
define('LETTERBOXD_URL', LETTERBOXD_BASE_URL . '/' . LETTERBOXD_USERNAME . '/watchlist/');
define('MAX_WATCHLIST_PAGES_TO_FETCH', 0); // 0 stands for no limit, 0 recommend
define('LIMIT_FIND_NOT_SEARCHED_YET', 10);
define('LIMIT_FIND_NOT_FOUND_YET', 10);
define('MINIMUM_SEEDS', 4);
define('MINIMUM_FILESIZE', 3); /* in GB */
define('MAXIMUM_FILESIZE', 19); /* in GB */
define('FEED_DOWNLOAD_LINK', 'both'); /* torrent, magnet, both */
$sites = array( /* prioritize sites to search */
'extratorrent',
'kickasstorrents'
);
$titleWhitelist = array( /* one of these must be in the title */
'720p',
'1080p',
'bdrip',
'brrip'
);
$titleBlacklist = array( /* none of these may be in the title */
'upscaled',
'hdcam',
'trailer',
'yify',
'ganool'
);
include_once('src/database/DatabaseAbstract.php');
include_once('src/database/SqliteDatabase.php');
$pdo = new \PDO('sqlite:' . SQLITE_FILENAME);
$database = new LetterBoxdWatchlistRss\SqliteDatabase($pdo);