@ -22,6 +22,7 @@ import java.io.FileNotFoundException;
@@ -22,6 +22,7 @@ import java.io.FileNotFoundException;
import java.io.IOException ;
import java.io.InputStream ;
import java.net.URI ;
import java.net.URLDecoder ;
import java.util.ArrayList ;
import java.util.Date ;
import java.util.List ;
@ -276,6 +277,8 @@ public class DelugeAdapter implements IDaemonAdapter {
@@ -276,6 +277,8 @@ public class DelugeAdapter implements IDaemonAdapter {
// Request to add a magnet link by URL
String magnet = ( ( AddByMagnetUrlTask ) task ) . getUrl ( ) ;
// Deluge doesn't support (fully) application/x-www-form-urlencoded magnet links
magnet = URLDecoder . decode ( magnet , "UTF-8" ) ;
params . put ( magnet ) ;
params . put ( new JSONArray ( ) ) ;