mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
bugfix: invalid version codes for some apkpure links
This commit is contained in:
@ -131,7 +131,7 @@ class APKPure extends AppSource {
|
|||||||
var link =
|
var link =
|
||||||
html.querySelector("a.download-start-btn")?.attributes['href'];
|
html.querySelector("a.download-start-btn")?.attributes['href'];
|
||||||
RegExp downloadLinkRegEx = RegExp(
|
RegExp downloadLinkRegEx = RegExp(
|
||||||
r'^https:\/\/d\.[^/]+\/b\/([^/]+)\/[^/?]+\?versionCode=([0-9]+).$',
|
r'^https:\/\/d\.[^/]+\/b\/([^/]+)\/[^/?]+\?versionCode=([0-9]+)$',
|
||||||
caseSensitive: false);
|
caseSensitive: false);
|
||||||
RegExpMatch? match = downloadLinkRegEx.firstMatch(link ?? '');
|
RegExpMatch? match = downloadLinkRegEx.firstMatch(link ?? '');
|
||||||
if (match == null) {
|
if (match == null) {
|
||||||
|
Reference in New Issue
Block a user