Changeset 10907


Ignore:
Timestamp:
Jun 30, 2010, 5:54:19 AM (12 years ago)
Author:
Longinus00
Message:

(daemon) #3368:Edit trackers in transmission-remote

Location:
trunk/daemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r10884 r10907  
    245245    { 953, "global-seedratio",       "All torrents, unless overridden by a per-torrent setting, should seed until a specific ratio", "gsr", 1, "ratio" },
    246246    { 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>" },
    247249    { 's', "start",                  "Start the current torrent(s)", "s",  0, NULL },
    248250    { 'S', "stop",                   "Stop the current torrent(s)", "S",  0, NULL },
     
    356358            return MODE_SESSION_SET;
    357359
     360        case 712: /* tracker-remove */
    358361        case 950: /* seedratio */
    359362        case 951: /* seedratio-default */
     
    371374        case 701: /* torrent priority-normal */
    372375        case 702: /* torrent priority-low */
     376        case 710: /* tracker-add */
    373377        case 900: /* file priority-high */
    374378        case 901: /* file priority-normal */
     
    19351939            switch( c )
    19361940            {
     1941                case 712:
     1942                    {
     1943                        tr_benc * trackers = tr_bencDictAddDict( args, "trackerRemove", 1 );
     1944                        tr_bencDictAddInt( trackers, "id", atoi(optarg) );
     1945                        break;
     1946                    }
    19371947                case 950: tr_bencDictAddReal( args, "seedRatioLimit", atof(optarg) );
    19381948                          tr_bencDictAddInt( args, "seedRatioMode", TR_RATIOLIMIT_SINGLE );
     
    19771987                case 702: tr_bencDictAddInt( args, "bandwidthPriority", -1 );
    19781988                          break;
     1989                case 710:
     1990                     {
     1991                         tr_benc * trackers = tr_bencDictAddDict( args, "trackerAdd", 1 );
     1992                         tr_bencDictAddStr( trackers, "announce", optarg );
     1993                         break;
     1994                     }
    19791995                default:  assert( "unhandled value" && 0 );
    19801996                          break;
  • trunk/daemon/transmission-remote.1

    r10798 r10907  
    221221.It Fl srd Fl -seedratio-default
    222222Let the current torrent(s) use the global seedratio settings
     223.It Fl ta Fl -tracker-add Ar tracker
     224Add a tracker to a torrent
     225.It Fl ta Fl -tracker-remove Ar trackerId
     226Remove a tracker from a torrent
    223227.It Fl s Fl -start
    224228Start the current torrent(s)
Note: See TracChangeset for help on using the changeset viewer.