mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 06:36:44 +02:00
Sourceforge apk url extraction bugfix
This commit is contained in:
@ -31,7 +31,8 @@ class SourceForge extends AppSource {
|
||||
getVersion(String url) {
|
||||
try {
|
||||
var tokens = url.split('/');
|
||||
return tokens[tokens.length - 2];
|
||||
var fi = tokens.indexOf('files');
|
||||
return tokens[tokens[fi + 2] == 'download' ? fi - 1 : fi + 1];
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user