forked from glftpd/foo-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.mod_flac
62 lines (41 loc) · 1.48 KB
/
README.mod_flac
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
FLACINFO
Building:
---------
mod_flac depends on the libflac package (libflac-dev)
Run 'make' in this dir to build mod_flac.so
Copy it to /glftpd/bin/premodules and make sure libflac.so is in glftpd's lib dir
Add it to the modules list in pre.cfg like this:
modules=/bin/premodules/mod_flac.so
If you have more modules already loaded, it will look like this
modules=/bin/premodules/mod_other.so|/bin/premodules/mod_whatever.so|/bin/premodules/mod_flac.so
Output:
-------
output from mod_flac can be configured using the setting:
mod_flac.output=output string
in pre.cfg, default output string is:
PRE-FLACINFO: "%R" "%a" "%l" "%y" "%g" "" "%r" "%Q" "%o" "" "" "" "" "%v"
The variables are similar to mp3:
%R - release name, eg. Me_and_Myself-My_Leet_Tracks-FLAC-2013-Whatever
%a - artist
%l - album name
%y - year
%g - genre (string)
%G - UNUSED
%r - bitrate in Kbit/s
%Q - sampling frequency in Hz
%o - channelmode
%m - UNUSED
%s - UNUSED
%S - UNUSED
%L - UNUSED
%v - vendor version string
Sitebot:
--------
pzs-ng's ngBot.conf:
set redirect(PRE-FLACINFO) $mainchan
set disable(PRE-FLACINFO) 0
set chanlist(PRE-FLACINFO) $mainchan
set variables(PRE-FLACINFO) "%releasename %artist %album %year %genre %none %bitrate %sampling %mode %none %none %none %none %version"
lappend msgtypes(DEFAULT) "PRE-FLACINFO"
add to theme:
announce.PRE-FLACINFO = "[%b{%c1{pre-flacinfo}}] %artist - %album :: %b{%genre} from %year at %b{%sampling}Hz in %b{%mode} channels %b{%bitrate}kbps (%version)"