Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:manfred-h
minidlna
07-fix-multi-artist-album-handling.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 07-fix-multi-artist-album-handling.patch of Package minidlna
From: Florian Will <florian.will@gmail.com> Date: Mon, 9 Mar 2015 13:18:56 +0300 Subject: [PATCH] Ignore artist when looking up existing container Forwarded: http://sourceforge.net/p/minidlna/bugs/246/ Bug-Debian: https://bugs.debian.org/734383 This prevents creation of multiple album containers for compilation albums (i.e. one separate album for each artist) when adding files via inotify, which causes the scanner cache to be invalidated all the time. OTOH, different albums with identical names ("Greatest Hits", "Love Songs") are now listed as just a single album in the "Album" container. This might be solved using some heuristic based on music file location (same directory / different directories). The new behaviour is usually the same as encountered when doing a full rescan, because there's a scanner cache that is used during full rescans and that cache ignores artist names as well. --- scanner.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scanner.c b/scanner.c index f240a2f..b9ee514 100644 --- a/scanner.c +++ b/scanner.c @@ -98,9 +98,8 @@ insert_container(const char *item, const char *rootParent, const char *refID, co "left join DETAILS d on (o.DETAIL_ID = d.ID)" " where o.PARENT_ID = '%s'" " and o.NAME like '%q'" - " and d.ARTIST %s %Q" " and o.CLASS = 'container.%s' limit 1", - rootParent, item, artist?"like":"is", artist, class); + rootParent, item, class); if( result ) { base = strrchr(result, '$');
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor