mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-06-05 21:09:11 +02:00
Some changes
This commit is contained in:
@ -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 {
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user