Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 45558 Details for
Bug 73832
media-sound/slimserver-6.1.1 (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/slimserver-5.4.0--playlistdir_option.patch
slimserver-5.4.0--playlistdir_option.patch (text/plain), 2.13 KB, created by
TGL
on 2004-12-08 12:49:07 UTC
(
hide
)
Description:
files/slimserver-5.4.0--playlistdir_option.patch
Filename:
MIME Type:
Creator:
TGL
Created:
2004-12-08 12:49:07 UTC
Size:
2.13 KB
patch
obsolete
>--- SlimServer_v5.4.0.orig/slimserver.pl 2004-12-07 13:50:09.000000000 +0100 >+++ SlimServer_v5.4.0/slimserver.pl 2004-12-08 04:00:00.135966272 +0100 >@@ -172,7 +172,7 @@ > > # old preferences settings, only used by the .slim.conf configuration. > # real settings are stored in the new preferences file: .slim.pref >-use vars qw($audiodir $httpport); >+use vars qw($audiodir $playlistdir $httpport); > > use vars qw( > $d_artwork >@@ -471,7 +471,7 @@ > > sub showUsage { > print <<EOF; >-Usage: $0 [--audiodir <dir>] [--diag] [--daemon] [--stdio] [--logfile <logfilepath>] >+Usage: $0 [--audiodir <dir>] [--playlistdir <dir>] [--diag] [--daemon] [--stdio] [--logfile <logfilepath>] > [--user <username>] > [--group <groupname>] > [--httpport <portnumber> [--httpaddr <listenip>]] >@@ -482,6 +482,7 @@ > > --help => Show this usage information. > --audiodir => The path to a directory of your MP3 files. >+ --playlistdir => The path to a directory of your playlist files. > --cachedir => Directory for SlimServer to save cached music and web data > --diag => Use diagnostics, shows more verbose errors. Also slows down library processing considerably > --logfile => Specify a file for error logging. >@@ -583,6 +584,7 @@ > 'httpport=s' => \$httpport, > 'logfile=s' => \$logfile, > 'audiodir=s' => \$audiodir, >+ 'playlistdir=s' => \$playlistdir, > 'cachedir=s' => \$cachedir, > 'pidfile=s' => \$pidfile, > 'playeraddr=s' => \$localClientNetAddr, >@@ -659,6 +661,10 @@ > if (defined($audiodir)) { > Slim::Utils::Prefs::set("audiodir", $audiodir); > } >+ >+ if (defined($playlistdir)) { >+ Slim::Utils::Prefs::set("playlistdir", $playlistdir); >+ } > > if (defined($cachedir)) { > Slim::Utils::Prefs::set("cachedir", $cachedir); >@@ -693,6 +699,12 @@ > Slim::Utils::Prefs::set("audiodir",$audiodir); > } > } >+ >+ if (defined(Slim::Utils::Prefs::get("playlistdir")) && Slim::Utils::Prefs::get("playlistdir") =~ m|[/\\]$|) { >+ $playlistdir = Slim::Utils::Prefs::get("playlistdir"); >+ $playlistdir =~ s|[/\\]$||; >+ Slim::Utils::Prefs::set("playlistdir",$playlistdir); >+ } > } > > sub daemonize {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73832
:
45556
|
45557
|
45558
|
45559
|
45560
|
45561
|
45563
|
45564
|
45565
|
45615
|
45616
|
45617
|
46428
|
46429
|
47062
|
51744
|
54408
|
65839
|
65841
|
65842
|
66443
|
66447
|
66448
|
66555
|
66955
|
67023
|
67024
|
67025
|
67026
|
67027
|
67028
|
67029
|
68486
|
68487
|
68488
|
68489
|
68490
|
69183
|
69184
|
69185
|
71769
|
71770
|
71771
|
71826
|
71827
|
71828
|
71829
|
73156
|
73157
|
73158
|
77289
|
77300
|
87174
|
87175
|
87176
|
87177
|
87178
|
90462
|
101321
|
101322
|
101323
|
101324
|
101325