@ -22,6 +22,7 @@ import java.io.FileNotFoundException;
import java.io.IOException ;
import java.io.IOException ;
import java.io.InputStream ;
import java.io.InputStream ;
import java.net.URI ;
import java.net.URI ;
import java.net.URLDecoder ;
import java.util.ArrayList ;
import java.util.ArrayList ;
import java.util.Date ;
import java.util.Date ;
import java.util.List ;
import java.util.List ;
@ -276,6 +277,8 @@ public class DelugeAdapter implements IDaemonAdapter {
// Request to add a magnet link by URL
// Request to add a magnet link by URL
String magnet = ( ( AddByMagnetUrlTask ) task ) . getUrl ( ) ;
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 ( magnet ) ;
params . put ( new JSONArray ( ) ) ;
params . put ( new JSONArray ( ) ) ;