Ticket #317 (closed enhancement: invalid)

Opened 1 year ago

Last modified 1 year ago

Per-container filtering for Rhythmbox plugin

Reported by: Caleb Assigned to: dev
Priority: major Milestone:
Component: Rhythmbox Version:
Keywords: rhythmbox, filtering Cc:

Description

The UPnP plugin for Rhythmbox generates a large number of duplicate entries when browsing MediaServers such as Mediatomb that have the following container structure:

Root -Audio --All Audio ---track -Artists --Artist ---track -Albums --album ---track

This is because each instance of "track" in the container structure has a different numeric identifier, even though each instance references the same file. The Rhythmbox uses the numeric identifier to check for duplicates, and since each instance of "track" has a different identifier, each instance is added, resulting in duplicate entries for the same file.

One possible solution is given in the attached patch (diff'd from SVN rev 1655). A tuple named "filter" is parsed each time a new container is encountered while browsing a MediaServer's contents. Each container is assigned a path in the style of the UNIX file system, with containers taking the place of directories. For example, the 'All Audio' container in the structure shown above would have a path "/Audio/All Audio". If one of the strings in the "filter" tuple exists verbatim in the container's path, the container and its contents are added to the Rhythmbox database.

The end result is the contents and subcontainers of any containers named in the filter tuple will be displayed in Rhythmbox.

Attachments

filter.diff (7.6 kB) - added by Caleb on 08.08.2010 03:07:37.

Change History

08.08.2010 03:07:37 changed by Caleb

  • attachment filter.diff added.

08.08.2010 03:08:12 changed by Caleb

  • component changed from Core to Rhythmbox.

08.08.2010 03:08:25 changed by Caleb

  • type changed from defect to enhancement.

09.08.2010 23:55:29 changed by exarkun

  • keywords set to rhythmbox, filtering.

Copying keywords from duplicate #316

02.02.2011 07:53:24 changed by Caleb

  • status changed from new to closed.
  • resolution set to invalid.