diff options
author | George Kaklamanos <gkaklas1@gmail.com> | 2017-06-18 04:39:13 +0300 |
---|---|---|
committer | George Kaklamanos <gkaklas1@gmail.com> | 2017-06-19 16:33:56 +0300 |
commit | 810d589610ef851096d5a4c1e711725afe817f92 (patch) | |
tree | 0172a9b63f875a0fb317b434d949c12199cf8327 /src/torrent.c | |
parent | c61967fe324d462024cf115648a117ea5a8010df (diff) |
Add option in menu to copy magnet link
Diffstat (limited to 'src/torrent.c')
-rw-r--r-- | src/torrent.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/torrent.c b/src/torrent.c index e5577ee..8e5422f 100644 --- a/src/torrent.c +++ b/src/torrent.c @@ -108,6 +108,11 @@ gint64 torrent_get_bandwidth_priority(JsonObject * t) return json_object_get_int_member(t, FIELD_BANDWIDTH_PRIORITY); } +const gchar *torrent_get_magnetlink(JsonObject * t) +{ + return json_object_get_string_member(t, FIELD_MAGNETLINK); +} + gint64 torrent_get_upload_limit(JsonObject * t) { return json_object_get_int_member(t, FIELD_UPLOAD_LIMIT); |