From 2277cc5f05b1da66321f1589e89516d093dae4e6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 30 Dec 2020 12:21:40 +0100 Subject: [PATCH] Some changes --- torrentStream/build.gradle | 4 ++-- .../com/github/se_bastiaan/torrentstream/TorrentStream.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/torrentStream/build.gradle b/torrentStream/build.gradle index 4f14510..f67528b 100644 --- a/torrentStream/build.gradle +++ b/torrentStream/build.gradle @@ -21,11 +21,11 @@ apply plugin: 'de.undercouch.download' group='com.github.TorrentStream' android { - compileSdkVersion 29 + compileSdkVersion 30 defaultConfig { minSdkVersion 15 - targetSdkVersion 29 + targetSdkVersion 30 } buildTypes { diff --git a/torrentStream/src/main/java/com/github/se_bastiaan/torrentstream/TorrentStream.java b/torrentStream/src/main/java/com/github/se_bastiaan/torrentstream/TorrentStream.java index 9d3f3a4..03bbef5 100644 --- a/torrentStream/src/main/java/com/github/se_bastiaan/torrentstream/TorrentStream.java +++ b/torrentStream/src/main/java/com/github/se_bastiaan/torrentstream/TorrentStream.java @@ -187,7 +187,7 @@ public final class TorrentStream { */ private TorrentInfo getTorrentInfo(String torrentUrl) throws TorrentInfoException { if (torrentUrl.startsWith("magnet")) { - byte[] data = torrentSession.fetchMagnet(torrentUrl, 30000); + byte[] data = torrentSession.fetchMagnet(torrentUrl, 30); if (data != null) try { return TorrentInfo.bdecode(data);