--- SlimServer_v5.4.0.orig/Plugins/ShoutcastBrowser.pm 2004-12-07 13:50:09.000000000 +0100 +++ SlimServer_v5.4.0.orig/Plugins/ShoutcastBrowser.pm 2004-12-10 13:26:58.528413544 +0100 @@ -150,11 +150,14 @@ my $all_name = ''; my $sort_bitrate_up = 0; -my ($recent_name, $misc_genre, $position_of_recent); +my ($recent_name, $recent_dir, $misc_genre, $position_of_recent); my (%recent_filename, %recent_data); my $recent_dirname = 'ShoutcastBrowser_Recently_Played'; -my $recent_dir = catdir(Slim::Utils::Prefs::get('playlistdir'), $recent_dirname); -mkdir $recent_dir unless (-d $recent_dir); + +if (Slim::Utils::Prefs::get('playlistdir')) { + $recent_dir = catdir(Slim::Utils::Prefs::get('playlistdir'), $recent_dirname); + mkdir $recent_dir unless (-d $recent_dir); +} my ($top_limit, $most_popular_name, $custom_genres, %custom_genres); @@ -344,9 +347,7 @@ $recent_name = Slim::Utils::Strings::string('PLUGIN_SHOUTCASTBROWSER_RECENT'); $most_popular_name = Slim::Utils::Strings::string('PLUGIN_SHOUTCASTBROWSER_MOST_POPULAR'); $misc_genre= Slim::Utils::Strings::string('PLUGIN_SHOUTCASTBROWSER_MISC'); - $recent_filename{$client} = - catfile($recent_dir, - $client->name() . '.m3u'); + $recent_filename{$client} = catfile($recent_dir,$client->name() . '.m3u') if defined $recent_dir; # Get streams unless (@genres)