forked from glftpd/foo-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from silv3rr/flac
add mod_flac
- Loading branch information
Showing
17 changed files
with
672 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,8 @@ Sep 28 2004: * Added WOY to the SECTION dir as a macro for Week of Year. | |
|
||
Cheers, Tanesha Team <[email protected]>. | ||
|
||
-------------------- | ||
|
||
//PCFiL | ||
Jul 27 2011: * Fixed dirlog damage on x64 OS for foo-pre | ||
* Fixed foo-spy (spy) with new glftpd headers. (remember to set key in who.cfg) | ||
|
@@ -110,3 +112,8 @@ Mar 03 2022: + added mod_prebw | |
|
||
Jun 28 2023: * changed date macros for 'dir' property to %MM %DD etc | ||
* changed prebw module to run bin without any output | ||
|
||
Feb 29 2024: + added flac module, thanks to an anonymous 'donor' | ||
Mar 02 2024: * cleaned up mod_flac a bit and added artist/album tags, vendor_string | ||
Mar 03 2024: * fixed module tester | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
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)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.