summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/torrent.c b/src/torrent.c
index f56c2bc..3c6f0d4 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -61,6 +61,11 @@ const gchar *torrent_get_name(JsonObject * t)
return json_object_get_string_member(t, FIELD_NAME);
}
+gint64 torrent_get_added_date(JsonObject *t)
+{
+ return json_object_get_int_member(t, FIELD_ADDED_DATE);
+}
+
gboolean torrent_get_honors_session_limits(JsonObject * t)
{
return json_object_get_boolean_member(t, FIELD_HONORS_SESSION_LIMITS);