show_albums();
break;
case 'show_all_songs':
$artist = get_artist_name(scrub_in($_REQUEST['artist']));
echo "
" . _("All songs by") . " $artist
";
$song_ids = get_song_ids_from_artist($_REQUEST['artist']);
show_songs($song_ids);
break;
case 'update_from_tags':
$artist = new Artist($_REQUEST['artist']);
echo "
" . _("Starting Update from Tags") . ". . .
\n";
$catalog = new Catalog();
$catalog->update_single_item('artist',$_REQUEST['artist']);
echo "
" . _("Update From Tags Complete") . " ";
echo "[" . _("Return") . "]";
break;
case 'match':
case 'Match':
$match = scrub_in($_REQUEST['match']);
preg_match("/^(\w*)/", $match, $matches);
show_alphabet_list('artists','artists.php',$match);
if ($match === "Browse") {
echo "\n";
show_artists();
}
elseif ($match === "Show_all") {
echo "\n";
$_SESSION['view_offset_limit'] = 999999;
show_artists();
}
else {
$chr = preg_replace("/[^a-zA-Z0-9]/", "", $matches[1]);
echo "\n";
if ($chr == '') {
show_artists('A');
}
else {
show_artists($chr);
}
}
break;
default:
echo "\n";
show_alphabet_list('artists','artists.php');
show_artists('A');
break;
}
echo "
";
show_page_footer ('Artists', '',$user->prefs['display_menu']);
?>