forked from multani/sonata
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi-CD albums: prevent multiple entries, improve art search
Improve handling of multi-CD albums: - revert 8cb4b55 that fixes the problem with showing multi-CD albums multiple times, but it breaks artwork caching for album view. As the album path is ignored we search artwork with path=None and as the result when Artwork.artwork_get_local_image is called with songpath=None it looks for artwork in the directory of current song. So all the albums get the same artwork and the art_cache is broken. - add Base.get_multicd_album_root_dir method to get album root directory for tracks from multi-CD albums. For example, if track is located in 'artist/album/CD 2' directory than the method returns 'artist/album'. This method is used in artwork search algorithm (to look for artwork in album root directory but not in CD's subdirectory) and while populating album view (to merge all CDs into single album entry).
- Loading branch information
Kirill Lashuk
committed
Sep 14, 2010
1 parent
b4ce54f
commit 01917ad
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters