Some changes
This commit is contained in:
parent
44d26bb1cf
commit
2277cc5f05
|
@ -21,11 +21,11 @@ apply plugin: 'de.undercouch.download'
|
||||||
group='com.github.TorrentStream'
|
group='com.github.TorrentStream'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 30
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 29
|
targetSdkVersion 30
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
|
@ -187,7 +187,7 @@ public final class TorrentStream {
|
||||||
*/
|
*/
|
||||||
private TorrentInfo getTorrentInfo(String torrentUrl) throws TorrentInfoException {
|
private TorrentInfo getTorrentInfo(String torrentUrl) throws TorrentInfoException {
|
||||||
if (torrentUrl.startsWith("magnet")) {
|
if (torrentUrl.startsWith("magnet")) {
|
||||||
byte[] data = torrentSession.fetchMagnet(torrentUrl, 30000);
|
byte[] data = torrentSession.fetchMagnet(torrentUrl, 30);
|
||||||
if (data != null)
|
if (data != null)
|
||||||
try {
|
try {
|
||||||
return TorrentInfo.bdecode(data);
|
return TorrentInfo.bdecode(data);
|
||||||
|
|
Loading…
Reference in New Issue