Grilo triggers content-changed signal in tracker plugin when Nautilus is started
Submitted by Vadim Rutkovsky
Assigned to gri..@..e.bugs
Link to original bug (#727610)
Description
Gnome Music now listens to content-changed signal from grilo's tracker plugin to identify when a new track is added. However every time a user starts Nautilus this signal is triggered:
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:532: Tracker update event for class=http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Document ins=19 del=10 evt=0x273a500
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:592: inserted=0 deleted=0 updated=0 orphan=1
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:288: tracker_evt_update_orphans: evt=0x273a500
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:346: request : 'SELECT rdf:type(?urn) tracker:id(?urn) nie:dataSource(?urn) WHERE { ?urn a nfo:FileDataObject . FILTER (tracker:id(?urn) IN (107623)) }'
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:532: Tracker update event for class=http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Document ins=19 del=10 evt=0x26f1680
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:592: inserted=0 deleted=0 updated=0 orphan=1
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:288: tracker_evt_update_orphans: evt=0x26f1680
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:346: request : 'SELECT rdf:type(?urn) tracker:id(?urn) nie:dataSource(?urn) WHERE { ?urn a nfo:FileDataObject . FILTER (tracker:id(?urn) IN (107623)) }'
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:262: tracker_evt_update_orphans_cb: evt=0x273a500
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:262: tracker_evt_update_orphans_cb: evt=0x26f1680
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:187: tracker_evt_update_orphan_item_cb: evt=0x273a500
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:214: Orphan item: id=107623 datasource=urn:nepomuk:datasource:9291a450-1d49-11de-8c30-0800200c9a66
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:225: Adding to cache id=107623
(gnome-music:11164): Grilo-DEBUG: [tracker-notif] grl-tracker-source-notif.c:241: Notify id=107623 source=Tracker p=0x24eda90
15:59:14 DEBUG __init__.py:42 gnomemusic.grilo._on_content_changed(<Grilo object at 0x7f7dc00b3a00 (gnomemusic+grilo+Grilo at 0x1c49820)>, <__main__.GrlTrackerSource object at 0x7f7db80abc30 (GrlTrackerSource at 0x24eda90)>, [<Media object at 0x7f7db80c6690 (GrlMedia at 0x2611820)>], `<enum GRL_CONTENT_ADDED of type GrlSourceChangeType>`, False)
As you see orphan item triggers content-changed with GrlSourceChangeType = GRL_CONTENT_ADDED
Version: git master
Edited by Marinus Schraal