import net.pterodactylus.rhynodge.State;
import net.pterodactylus.rhynodge.states.TorrentState.TorrentFile;
import net.pterodactylus.rhynodge.State;
import net.pterodactylus.rhynodge.states.TorrentState.TorrentFile;
* The magnet URI to extract the “xt” from
* @return The extracted ID, or {@code null} if no ID could be found
*/
* The magnet URI to extract the “xt” from
* @return The extracted ID, or {@code null} if no ID could be found
*/
List<NameValuePair> parameters = URLEncodedUtils.parse(magnetUri.substring("magnet:?".length()), Charset.forName("UTF-8"));
for (NameValuePair parameter : parameters) {
if (parameter.getName().equals("xt")) {
List<NameValuePair> parameters = URLEncodedUtils.parse(magnetUri.substring("magnet:?".length()), Charset.forName("UTF-8"));
for (NameValuePair parameter : parameters) {
if (parameter.getName().equals("xt")) {