Changeset 10907
- Timestamp:
- Jun 30, 2010, 5:54:19 AM (12 years ago)
- Location:
- trunk/daemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/remote.c
r10884 r10907 245 245 { 953, "global-seedratio", "All torrents, unless overridden by a per-torrent setting, should seed until a specific ratio", "gsr", 1, "ratio" }, 246 246 { 954, "no-global-seedratio", "All torrents, unless overridden by a per-torrent setting, should seed regardless of ratio", "GSR", 0, NULL }, 247 { 710, "tracker-add", "Add a tracker to a torrent", "ta", 1, "<tracker>" }, 248 { 712, "tracker-remove", "Remove a tracker from a torrent", "tr", 1, "<trackerId>" }, 247 249 { 's', "start", "Start the current torrent(s)", "s", 0, NULL }, 248 250 { 'S', "stop", "Stop the current torrent(s)", "S", 0, NULL }, … … 356 358 return MODE_SESSION_SET; 357 359 360 case 712: /* tracker-remove */ 358 361 case 950: /* seedratio */ 359 362 case 951: /* seedratio-default */ … … 371 374 case 701: /* torrent priority-normal */ 372 375 case 702: /* torrent priority-low */ 376 case 710: /* tracker-add */ 373 377 case 900: /* file priority-high */ 374 378 case 901: /* file priority-normal */ … … 1935 1939 switch( c ) 1936 1940 { 1941 case 712: 1942 { 1943 tr_benc * trackers = tr_bencDictAddDict( args, "trackerRemove", 1 ); 1944 tr_bencDictAddInt( trackers, "id", atoi(optarg) ); 1945 break; 1946 } 1937 1947 case 950: tr_bencDictAddReal( args, "seedRatioLimit", atof(optarg) ); 1938 1948 tr_bencDictAddInt( args, "seedRatioMode", TR_RATIOLIMIT_SINGLE ); … … 1977 1987 case 702: tr_bencDictAddInt( args, "bandwidthPriority", -1 ); 1978 1988 break; 1989 case 710: 1990 { 1991 tr_benc * trackers = tr_bencDictAddDict( args, "trackerAdd", 1 ); 1992 tr_bencDictAddStr( trackers, "announce", optarg ); 1993 break; 1994 } 1979 1995 default: assert( "unhandled value" && 0 ); 1980 1996 break; -
trunk/daemon/transmission-remote.1
r10798 r10907 221 221 .It Fl srd Fl -seedratio-default 222 222 Let the current torrent(s) use the global seedratio settings 223 .It Fl ta Fl -tracker-add Ar tracker 224 Add a tracker to a torrent 225 .It Fl ta Fl -tracker-remove Ar trackerId 226 Remove a tracker from a torrent 223 227 .It Fl s Fl -start 224 228 Start the current torrent(s)
Note: See TracChangeset
for help on using the changeset viewer.