mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Fixing upload torrent by URL
This commit is contained in:
@@ -171,13 +171,18 @@ TransmissionRemote.prototype =
|
||||
this.sendTorrentCommand( 'torrent-verify', torrents );
|
||||
},
|
||||
addTorrentByUrl: function( url, options ) {
|
||||
this.sendRequest( RPC._Root, $.toJSON({
|
||||
var remote = this;
|
||||
var o = {
|
||||
method: 'torrent-add',
|
||||
arguments: {
|
||||
paused: (options.paused ? 'true' : 'false'),
|
||||
filename: url
|
||||
}
|
||||
}) );
|
||||
};
|
||||
|
||||
this.sendRequest(o, function() {
|
||||
remote.loadTorrents();
|
||||
} );
|
||||
},
|
||||
savePrefs: function( args ) {
|
||||
var remote = this;
|
||||
|
||||
Reference in New Issue
Block a user