forked from glftpd/foo-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.mp3genre
44 lines (30 loc) · 1.38 KB
/
README.mp3genre
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
Instructions foo-pre with mp3genre:
===================================
This is an ugly hack for foo-pre to add mp3 genre in PRE output (instead of in mod_idmp3).
It will add a new "genre" variable which you can use in PRE announces.
compile as usual;
-----------------
$ ./configure
$ make build
etc
(you do not need the mod_id3 module)
configure pre.cfg;
-------------------
Enable mp3genre:
addmp3genretogllog=1
The mp3genre hack introduces a new "%I" "macro":
group.DEFAULT.announce=PRE: "%PP/%R" "%R" "%G" "%D" "%F" "%S" "%C" "%W" "%U" "%g" "%T" "%I"
If you have any other announces defined do not forget to add it to those too.
Make sure addmp3genretogllog is set to "1".
change ngBot.conf;
------------------
add genre variable:
set variables(PRE) "%pf %releasename %pregroup %section %files %mbytes %cds %who %user %g_name %tagline %genre"
also change theme, eg default.zst:
announce.PRE = "[%b{%c1{pre} }][%section] %b{%relname} by %b{%pregroup} in %b{%files} files (%b{%mbytes}MB) of %b{%genre}."
example output;
---------------
mp3 with genre:
Mon Jan 01 00:00:00 2017 PRE: "/site/mp3/0101/Example-Release-GRP" "Example-Release-GRP" "GRP" "mp3" "1" "10.0" "1" "user/10l.0Mb" "user" "GRP" "Tagline" "Pop"
release without genre:
Mon Jan 01 00:00:00 2017 PRE: "/site/mv/week-01/Example-Release-GRP" "Example-Release-GRP" "GRP" "mv" "1" "100.0" "1" "user/100.0Mb" "user" GRP" "Tagline" "n/a"