Always lower-case the magnet ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Feb 2013 20:32:34 +0000 (21:32 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Feb 2013 21:15:00 +0000 (22:15 +0100)
src/main/java/net/pterodactylus/rhynodge/states/TorrentState.java

index c4c3e0b..ddcd518 100644 (file)
@@ -262,7 +262,7 @@ public class TorrentState extends AbstractState implements Iterable<TorrentFile>
                        List<NameValuePair> parameters = URLEncodedUtils.parse(magnetUri.substring("magnet:?".length()), Charset.forName("UTF-8"));
                        for (NameValuePair parameter : parameters) {
                                if (parameter.getName().equals("xt")) {
-                                       return parameter.getValue();
+                                       return parameter.getValue().toLowerCase();
                                }
                        }
                        return null;