Opened 12 years ago

Last modified 8 years ago

#4409 new Enhancement

add an implicit "-t" option when adding torrents from transmission-remote

Reported by: Pawessum16 Owned by: jordan
Priority: Normal Milestone: None Set
Component: Utils Version: 2.33
Severity: Trivial Keywords:
Cc:

Description

When adding a torrent for seeding to the transmission-daemon through transmission-remote, transmission-remote spits out the error "No torrent specified! Please use the -t option first." to the command line when it should be ignored that there is no -t option because it is irrelevant when the added torrent is obviously the active one.

Here's the command:
transmission-remote -a /path/to/torrent/file --find /path/to/data/directory -v

Output:
No torrent specified! Please use the -t option first.
http://localhost:9091/transmission/rpc/ responded: "success"
http://localhost:9091/transmission/rpc/ responded: "success"

In this command, it would be logical to think of the specified torrent as the one being added, which the daemon does recognize as and the command flawlessly runs, but the remote does not congruently recognize the same.

Change History (8)

comment:1 Changed 12 years ago by jordan

  • Summary changed from Transmission-remote -t option error irrelevant to add an implicit "-t" option when adding torrents from transmission-remote
  • Type changed from Bug to Enhancement

comment:2 Changed 8 years ago by envoy510

This feature is killing me. How do I add a torrent with transmission-remote without getting that error? AFAICT, I can't use -t like it's telling me because it's a chicken and egg situation. There is no torrent id to give -t, because the torrent hasn't been added yet.

comment:3 follow-up: Changed 8 years ago by x190

Did you try -t all or -t torrent-hash?

-t --torrent all | id | torrent-hash Set the current torrent(s) for use by subsequent options. all will apply following requests to all torrents, while specific torrents can be chosen by id or hash. To set more than one current torrent, join their ids together in a list, such as "-t2,4,6-8" to operate on the torrents whose IDs are 2, 4, 6, 7, and 8.

Last edited 8 years ago by x190 (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 8 years ago by envoy510

Replying to x190:

Did you try -t all or -t torrent-hash?

-t --torrent all | id | torrent-hash Set the current torrent(s) for use by subsequent options. all will apply following requests to all torrents, while specific torrents can be chosen by id or hash. To set more than one current torrent, join their ids together in a list, such as "-t2,4,6-8" to operate on the torrents whose IDs are 2, 4, 6, 7, and 8.

I didn't try -t all, but -t torrent-hash makes no sense since I haven't added the torrent yet. The idea of looking up a random torrent-hash is just a gross workaround. What if there are no torrents being downloaded and I want to add a new one (via transmission-remote)?

I will try adding -t all. If that works, even when there are no torrents, that might be an acceptable workaround.

comment:5 Changed 8 years ago by envoy510

OK, it appears that -t all is a good workaround. Hopefully others finding this will be helped by this added info on this ticket.

Thanks.

comment:6 Changed 8 years ago by x190

I was wondering if -t 0 might work as well...

comment:7 follow-up: Changed 8 years ago by envoy510

Yep, -t 0 worked, too. Any reason to prefer this over -t all?

comment:8 in reply to: ↑ 7 Changed 8 years ago by x190

Replying to envoy510:

Yep, -t 0 worked, too. Any reason to prefer this over -t all?

Yes, if you had other torrents running and wanted different options for only the added torrent.

Note: See TracTickets for help on using tickets.