Add Torrents To wTorrent (v2.6)

By Shannon Brooks Last update Nov 3, 2011 — Installed 2,508 times.

Bug report

in
Subscribe to Bug report 2 posts, 2 voices



Constantine P. User

First of all:

- post('http://'+host+port+'/index.php?cls=AddT', 'torrenturl='+wTorrentLink.href+'&start_now=on', function(s) {
+ post('http://'+host+port+'/index.php?cls=AddT', 'torrenturl='+encodeURIComponent(wTorrentLink.href)+'&start_now=on', function(s) {

And also:

headers:{'Content-type':'application/x-www-form-urlencoded'},
- data:encodeURI(data),
+ data: data,

Otherwise links with '&' sign get posted as additional fields.

 
Shannon Brooks Script's Author

Made those changes and updated the script, thanks!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel