Skip to content

grltrackerwrapper: Filter content changed to keep only songs

content-changes signal is very verbose:

  • it can return multiple notifications for the same resource (one notification per rdf:type). For example, a song update will trigger two notifications with the same media id: one associated with nfo:Audio rdf:type and one with nmm:MusicPiece.
  • with the current design of the grilo plugin, it's not possible to filter the media type (one get notifications for audio, image, and video).

Both of these changes can be filtered by discarding Grl.Media which are not audio. Indeed, nfo:Audio changes are not registered as a media audio.

Merge request reports