forked from ben-xo/sslscrobbler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php-default
64 lines (53 loc) · 1.8 KB
/
config.php-default
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
<?php
$growlConfig = array(
'address' => 'localhost',
'password' => '',
'app_name' => 'SSLHistoryReader'
);
$lastfmConfig = array(
'api_key' => '9dc2c6ce26602ff23787a7ebd4066ad8',
'api_secret' => '9cc1995235704e14d9d9dcdb3a2ba693'
);
$twitterConfig = array(
'consumer_key' => 'muDxig9YR8URoKrv3GamA',
'consumer_secret' => 'UyOd1a9Gjicoc1Yt4dvZT3Ext8Z2paH40YSRYambc',
'message' => 'now playing: %s',
'filters' => array(
// filters from SSL/Plugins/Twitter/MessageFilters
// Disabled: add :beatport: into your message string above
// new BeatportTrackMessageFilter( new VgdURLShortener() )
)
);
$dbConfig = array(
'dsn' => 'mysql:host=localhost;dbname=test',
'user' => 'username',
'pass' => 'password',
'options' => array(),
'sql' => "UPDATE table SET field=:track, artist=:artist, title=:title, album=:album WHERE user=:key",
'empty_string' => '<no track is currently playing>',
);
$nowplayingloggerConfig = array(
'filename' => dirname(__FILE__) . '/SSL/Plugins/NowPlaying/nowplaying.txt'
);
$plugins = array(
new GrowlPlugin($growlConfig),
new NowPlayingLoggerPlugin($nowplayingloggerConfig),
/* Disabled plugins */
// new JSONServerPOC(),
// new AnalyzerPlugin(array('db' => dirname(__FILE__) . '/analyze.db')),
);
$cli_plugins = array(
new CLILastfmPlugin($lastfmConfig),
new CLITwitterPlugin($twitterConfig),
new CLIDBPlugin($dbConfig),
);
// set max log levels for various internal components. (The default is unlimited.)
$log_levels = array(
// 'TickSource' => L::SILENT,
// 'SSLHistoryFileMonitor' => L::DEBUG,
// 'SSLRealtimeModel' => L::DEBUG,
// 'NowPlayingModel' => L::DEBUG,
);
$observerDelays = array(
'NowPlayingObserver' => 0
);