mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-20 13:19:28 +02:00
APKPure bugfix
This commit is contained in:
@@ -131,12 +131,18 @@ class APKPure extends AppSource {
|
|||||||
throw NoAPKError();
|
throw NoAPKError();
|
||||||
}
|
}
|
||||||
String version = Uri.parse(link).pathSegments.last;
|
String version = Uri.parse(link).pathSegments.last;
|
||||||
String author = html
|
String? author;
|
||||||
|
try {
|
||||||
|
author = html
|
||||||
.querySelector('span.info-sdk')
|
.querySelector('span.info-sdk')
|
||||||
?.text
|
?.text
|
||||||
.trim()
|
.trim()
|
||||||
.substring(version.length + 4) ??
|
.substring(version.length + 4) ??
|
||||||
Uri.parse(standardUrl).pathSegments.reversed.last;
|
Uri.parse(standardUrl).pathSegments.reversed.last;
|
||||||
|
} catch (e) {
|
||||||
|
author = html.querySelector('span.info-sdk')?.text.trim() ??
|
||||||
|
Uri.parse(standardUrl).pathSegments.reversed.last;
|
||||||
|
}
|
||||||
String appName =
|
String appName =
|
||||||
html.querySelector('h1.info-title')?.text.trim() ?? appId;
|
html.querySelector('h1.info-title')?.text.trim() ?? appId;
|
||||||
String? changeLog = html
|
String? changeLog = html
|
||||||
|
Reference in New Issue
Block a user