From b3dcd437cb507774753659faa113d499e107e201 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 6 Dec 2007 06:05:32 +0000 Subject: fixed lack of prefix on albums improves album art search results, thx darkside --- lib/class/album.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/class/album.class.php') diff --git a/lib/class/album.class.php b/lib/class/album.class.php index bbacf852..d0beedce 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -209,9 +209,9 @@ class Album { foreach ($data as $key=>$value) { $this->$key = $value; } /* Truncate the string if it's to long */ - $this->f_name = truncate_with_ellipsis($this->name,Config::get('ellipsis_threshold_album')); + $this->f_name = truncate_with_ellipsis($this->full_name,Config::get('ellipsis_threshold_album')); - $this->f_name_link = "id) . "\" title=\"" . scrub_out($this->name) . "\">" . $this->f_name; + $this->f_name_link = "id) . "\" title=\"" . scrub_out($this->full_name) . "\">" . $this->f_name; // If we've got a disk append it if ($this->disk) { $this->f_name_link .= " disk. "\">[" . _('Disk') . " " . $this->disk . "]"; @@ -219,7 +219,7 @@ class Album { $this->f_name_link .=""; $this->f_link = $this->f_name_link; - $this->f_title = $name; + $this->f_title = $full_name; if ($this->artist_count == '1') { $artist = scrub_out(truncate_with_ellipsis(trim($this->artist_prefix . ' ' . $this->artist_name),Config::get('ellipsis_threshold_album'))); $this->f_artist_link = "artist_id . "\">" . $artist . ""; @@ -334,7 +334,7 @@ class Album { } else { $artist = $this->artist_name; - $album = $this->name; + $album = $this->full_name; } $raw_data = $lastfm->search($artist,$album); @@ -533,7 +533,7 @@ class Album { set_time_limit(0); if (empty($keywords)) { - $keywords = $this->name; + $keywords = $this->full_name; /* If this isn't a various album combine with artist name */ if ($this->artist_count == '1') { $keywords .= ' ' . $this->artist; } } -- cgit