mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Add upload torrent by url to web interface
This commit is contained in:
@@ -121,7 +121,15 @@ TransmissionRemote.prototype =
|
||||
removeTorrents: function( torrents ) {
|
||||
this.sendTorrentCommand( 'torrent-remove', torrents );
|
||||
},
|
||||
|
||||
addTorrentByUrl: function( url, options ) {
|
||||
this.sendRequest( RPC._Root, $.toJSON({
|
||||
method: 'torrent-add',
|
||||
arguments: {
|
||||
paused: (options.paused ? 'true' : 'false'),
|
||||
filename: url
|
||||
}
|
||||
}) );
|
||||
},
|
||||
savePrefs: function( args ) {
|
||||
var remote = this;
|
||||
var o = { };
|
||||
|
||||
Reference in New Issue
Block a user