if (decode != null && decode.length > 0) {
// Format is AA/<name>/<size>/<hash>/ZZ
try {
String decodeString = new String(decode, "utf8");
pattern = Pattern.compile("AA.*/(.*)/ZZ", Pattern.CASE_INSENSITIVE);
matcher = pattern.matcher(decodeString);
if (matcher.find()) {
String hash = matcher.group(1);
String magnet = parseTextForMagnets(hash);
if (magnet != null) {
pattern = Pattern.compile("AA/(.*)/[0-9]+", Pattern.CASE_INSENSITIVE);