[grilo-plugins/wip/carlosg/tracker3: 28/29] tracker3: Allow resolving medias just through their ID




commit c2315497f023b9faf06919f6de262bae9fbb0e6f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Aug 22 15:31:31 2020 +0200

    tracker3: Allow resolving medias just through their ID
    
    The ID is unique enough to trigger media queries, and we are already
    prepared for that, so just allow that here.

 src/tracker3/grl-tracker-source-api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker3/grl-tracker-source-api.c b/src/tracker3/grl-tracker-source-api.c
index 3424147e..ba089be7 100644
--- a/src/tracker3/grl-tracker-source-api.c
+++ b/src/tracker3/grl-tracker-source-api.c
@@ -696,7 +696,7 @@ grl_tracker_source_may_resolve (GrlSource *source,
   }
 
   if (media) {
-    if (grl_media_get_url (media)) {
+    if (grl_media_get_id (media) || grl_media_get_url (media)) {
       return TRUE;
     } else {
       if (missing_keys) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]