forked from ben-xo/sslscrobbler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php-default
97 lines (81 loc) · 2.97 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
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
<?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() )
)
);
$discordConfig = array(
'message' => 'now playing: %s',
'filters' => array(
// filters from SSL/Plugins/Twitter/MessageFilters
// Disabled: add :beatport: into your message string above
// new BeatportTrackMessageFilter( new VgdURLShortener() )
)
);
$irccatConfig = array(
'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'
);
$curlConfig = array(
'url' => 'http://localhost/nowplaying',
'port' => 80,
'verb' => 'POST',
'user_agent' => 'SSLScrobber',
);
$plugins = array(
// new GrowlPlugin($growlConfig),
new NowPlayingLoggerPlugin($nowplayingloggerConfig),
// uncomment the Popup Notifier if you want Popup Notifications - but don't use
// at the same time as TerminalNotifierPlugin() (below) as the notifications overlap on OSX.
// best to use one or the other. (And turn off Growl… pointless these days!)
new DmcaAlerter( /* new TerminalNotifierPopupNotifier() */ ),
/* Disabled plugins */
// new TerminalNotifierPlugin(),
// new JSONServerPOC(),
// new AnalyzerPlugin(array('db' => dirname(__FILE__) . '/analyze.db')),
);
$cli_plugins = array(
new CLILastfmPlugin($lastfmConfig),
new CLITwitterPlugin($twitterConfig),
new CLIDiscordPlugin($discordConfig),
new CLIDBPlugin($dbConfig),
new CLIIrcCatPlugin($irccatConfig),
new CLIJsonServerPlugin(),
);
// set max log levels for various internal components. (The default is INFO.)
$default_log_level = L::INFO;
$log_levels = array(
// 'TickSource' => L::SILENT,
// 'SSLHistoryFileMonitor' => L::DEBUG,
// 'SSLRealtimeModel' => L::DEBUG,
// 'NowPlayingModel' => L::DEBUG,
);