>From server/Slim/Player/TranscodingHelper.pm:
Code:
--------------------
sub loadConversionTables {
my @convertFiles = ();
main::INFOLOG && $log->info("Loading conversion config files...");
# custom convert files allowed at server root or root of plugin
directories
for my $baseDir (Slim::Utils::OSDetect::dirsFor('convert')) {
push @convertFiles, (
catdir($baseDir, 'convert.conf'),
catdir($baseDir, 'custom-convert.conf'),
catdir($baseDir, 'slimserver-convert.conf'),
);
}
foreach my $baseDir (Slim::Utils::PluginManager->dirsFor('convert')) {
...
--------------------
..and server/Slim/Utils/PluginManager.pm dirsFor():
Code:
--------------------
sub dirsFor {
my $class = shift;
my $type = shift;
my @dirs = ();
for my $name (keys %$plugins) {
# FIXME: for the moment include strings for disabled plugins so
the settings page works
if ($type eq 'strings' || $prefs->get($name) eq 'enabled') {
push @dirs, $plugins->{$name}->{'basedir'};
}
}
return @dirs;
}
--------------------
..and .../Slim/Utils/OS/RedHat.pm dirsFor():
Code:
--------------------
...
} elsif ($dir =~ /^(?:types|convert)$/) {
push @dirs, "/etc/squeezeboxserver";
...
--------------------
So...if OS == RedHat, Slim::Utils::OSDetect::dirsFor('convert') returns
"/etc/squeezeboxserver".
Not sure what Slim::Utils::PluginManager::dirsFor('convert') returns.
It looks like the convert.conf location is hard coded and OS dependent.
And I'm not sure why I'm thinking that slimserver.pl picks it up in
.../server, except that that's where it's found in the svn.
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=73689
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix