]> granicus.if.org Git - transmission/commitdiff
add #4846 'Show magnet links in torrent info in transmission-remote -i' from a patch...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 7 Apr 2012 00:33:05 +0000 (00:33 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 7 Apr 2012 00:33:05 +0000 (00:33 +0000)
daemon/remote.c

index de5591a344ec485100b8cae5ed0e32e32bac5208..31e0210a9e542459b6eadf88faa06b91eee20a38 100644 (file)
@@ -676,6 +676,7 @@ static const char * details_keys[] = {
     "isFinished",
     "isPrivate",
     "leftUntilDone",
+    "magnetLink",
     "name",
     "peersConnected",
     "peersGettingFromUs",
@@ -857,6 +858,8 @@ printDetails( tr_benc * top )
                 printf( "  Name: %s\n", str );
             if( tr_bencDictFindStr( t, "hashString", &str ) )
                 printf( "  Hash: %s\n", str );
+            if( tr_bencDictFindStr( t, "magnetLink", &str ) ) 
+                printf( "  Magnet: %s\n", str ); 
             printf( "\n" );
 
             printf( "TRANSFER\n" );