[gnome-online-miners/wip/facebook] All the photos from Facebook are JPEG, so hardcode the mimeType.



commit b851e61d4a3bd19436a673f0a60f3190884f32a4
Author: Álvaro Peña <alvaropg gmail com>
Date:   Mon Aug 19 23:25:42 2013 +0200

    All the photos from Facebook are JPEG, so hardcode the mimeType.

 src/gom-facebook-miner.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gom-facebook-miner.c b/src/gom-facebook-miner.c
index 25d9dff..079c58c 100644
--- a/src/gom-facebook-miner.c
+++ b/src/gom-facebook-miner.c
@@ -318,6 +318,14 @@ account_miner_job_process_photo (GomAccountMinerJob *job, GFBGraphPhoto *photo,
   if (*error != NULL)
     goto out;
 
+  gom_tracker_sparql_connection_insert_or_replace_triple (job->connection,
+                                                          job->cancellable, error,
+                                                          job->datasource_urn, resource,
+                                                          "nie:mimeType", "image/jpeg");
+
+  if (*error != NULL)
+    goto out;
+
   /* created time */
   gom_tracker_sparql_connection_insert_or_replace_triple (job->connection,
                                                           job->cancellable, error,


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