[gnome-online-miners/wip/facebook] facebook: The URL to the JPEG can change, so we store the Facebook URL.
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-miners/wip/facebook] facebook: The URL to the JPEG can change, so we store the Facebook URL.
- Date: Mon, 26 Aug 2013 17:28:00 +0000 (UTC)
commit 2d0a17885e02aea6c46f4db6915d47fd12cc0c17
Author: Álvaro Peña <alvaropg gmail com>
Date: Mon Aug 26 19:27:17 2013 +0200
facebook: The URL to the JPEG can change, so we store the Facebook URL.
src/gom-facebook-miner.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gom-facebook-miner.c b/src/gom-facebook-miner.c
index 0843707..7105c39 100644
--- a/src/gom-facebook-miner.c
+++ b/src/gom-facebook-miner.c
@@ -255,8 +255,8 @@ account_miner_job_process_photo (GomAccountMinerJob *job, GFBGraphPhoto *photo,
{
const gchar *photo_id;
const gchar *photo_name;
- const gchar *photo_source;
const gchar *photo_created_time;
+ const gchar *photo_url;
gchar *identifier;
const gchar *class = "nmm:Photo";
gchar *resource = NULL;
@@ -269,7 +269,7 @@ account_miner_job_process_photo (GomAccountMinerJob *job, GFBGraphPhoto *photo,
if (photo_name == NULL) {
photo_name = photo_created_time;
}
- photo_source = gfbgraph_photo_get_default_source_uri (photo);
+ photo_url = gfbgraph_node_get_uri (GFBGRAPH_NODE (photo));
identifier = g_strdup_printf ("facebook:photos:%s", photo_id);
@@ -297,7 +297,7 @@ account_miner_job_process_photo (GomAccountMinerJob *job, GFBGraphPhoto *photo,
gom_tracker_sparql_connection_insert_or_replace_triple (job->connection,
job->cancellable, error,
job->datasource_urn, resource,
- "nie:url", photo_source);
+ "nie:url", photo_url);
if (*error != NULL)
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]