[gnome-online-miners] flickr: Store the title as nie:title, not nfo:fileName



commit f18a2531ae076792115386e64d317495c9c74607
Author: Marek Chalupa <mchalupa redhat com>
Date:   Thu Jul 4 08:50:55 2013 +0200

    flickr: Store the title as nie:title, not nfo:fileName
    
    Also, containers have titles too.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703917

 src/gom-flickr-miner.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gom-flickr-miner.c b/src/gom-flickr-miner.c
index f7ef1fb..9f5f8a9 100644
--- a/src/gom-flickr-miner.c
+++ b/src/gom-flickr-miner.c
@@ -169,6 +169,15 @@ account_miner_job_process_entry (GomAccountMinerJob *job,
         goto out;
     }
 
+  gom_tracker_sparql_connection_insert_or_replace_triple
+    (job->connection,
+     job->cancellable, error,
+     job->datasource_urn, resource,
+     "nie:title", grl_media_get_title (entry->media));
+
+  if (*error != NULL)
+    goto out;
+
   if (op_type == OP_CREATE_HIEARCHY)
     goto out;
 
@@ -224,15 +233,6 @@ account_miner_job_process_entry (GomAccountMinerJob *job,
   if (*error != NULL)
     goto out;
 
-  gom_tracker_sparql_connection_insert_or_replace_triple
-    (job->connection,
-     job->cancellable, error,
-     job->datasource_urn, resource,
-     "nfo:fileName", grl_media_get_title (entry->media));
-
-  if (*error != NULL)
-    goto out;
-
   mime = g_content_type_guess (url, NULL, 0, NULL);
   if (mime != NULL)
     {


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