After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766115 - musics is shown multiple times in music listing
musics is shown multiple times in music listing
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
: 771372 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-05-07 17:41 UTC by ricardofunke
Modified: 2016-09-13 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
music repetition in the ui of music listing (143.58 KB, image/png)
2016-05-07 17:41 UTC, ricardofunke
  Details
tracker sparql (25 bytes, text/plain)
2016-05-09 21:57 UTC, ricardofunke
  Details
tracker sparql after indexes regenerated (17.88 KB, text/plain)
2016-05-09 22:10 UTC, ricardofunke
  Details
query: show songs only once (798 bytes, patch)
2016-05-10 07:33 UTC, Marinus Schraal
committed Details | Review

Description ricardofunke 2016-05-07 17:41:01 UTC
Created attachment 327449 [details]
music repetition in the ui of music listing

Some musics are shown multiple times in music listing.

I don't have multiple copies of these same musics in my filesystem, it appears to be just an ui bug

Not all musics are shown this way, and the number of repetetions is not always the same for all musics.

A screenshot is attached with some examples.
Comment 1 Marinus Schraal 2016-05-07 18:52:21 UTC
Can you attach the output of the following commandline statement:

tracker sparql -q "SELECT tracker:id(?song) ?url { ?song a nmm:MusicPiece; a nfo:FileDataObject . ?song a nmm:MusicPiece; nmm:musicAlbumDisc ?disc; nmm:musicAlbum ?album; nmm:performer ?performer; nie:url ?url. ?album nmm:albumArtist ?albumArtist; nie:title ?title . FILTER (STRSTARTS(nie:title(?album), 'Pulp'))}"
Comment 2 ricardofunke 2016-05-09 21:57:39 UTC
Created attachment 327547 [details]
tracker sparql

Hi Marinus,

Thanks for your help.

Attached is the file tracker-sparql-output.txt with the result of this command.

FYI, I already tried to clean all the indexes through tracker-preferences, but it keeps regenerating them the same way.

Best regards.
Comment 3 ricardofunke 2016-05-09 22:10:49 UTC
Created attachment 327548 [details]
tracker sparql after indexes regenerated

Sorry I sent the wrong file that I created just after the clean up of the indexes.

Then I waited again for the reindex regeneration and create a new file attached as tracker-sparql-output-indexes-regenerated.txt

Best,
Comment 4 Marinus Schraal 2016-05-10 07:33:00 UTC
Created attachment 327558 [details] [review]
query: show songs only once

The all songs query could return the same song multiple times, alter the
query to return a song only once.
Comment 5 Marinus Schraal 2016-05-10 07:36:16 UTC
Your output (thanks!) shows the same song(id) returned multiple times by tracker, the patch above should fix that. Please test.
Comment 6 ricardofunke 2016-05-10 14:26:44 UTC
Hi Marinus,

It works, thanks!
Comment 7 Marinus Schraal 2016-05-10 21:49:45 UTC
I think this got lost in the query rework during the 3.19/20 cycle. Thanks for the report.

This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.
Comment 8 Marinus Schraal 2016-09-13 16:37:50 UTC
*** Bug 771372 has been marked as a duplicate of this bug. ***