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