mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-28 08:49:29 +02:00
Steam bugfix
This commit is contained in:
@@ -10,7 +10,10 @@ class SteamMobile extends AppSource {
|
|||||||
host = 'store.steampowered.com';
|
host = 'store.steampowered.com';
|
||||||
name = tr('steam');
|
name = tr('steam');
|
||||||
additionalSourceAppSpecificSettingFormItems = [
|
additionalSourceAppSpecificSettingFormItems = [
|
||||||
[GeneratedFormDropdown('app', apks.entries.toList(), label: tr('app'))]
|
[
|
||||||
|
GeneratedFormDropdown('app', apks.entries.toList(),
|
||||||
|
label: tr('app'), defaultValue: apks.entries.toList()[0].key)
|
||||||
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +38,8 @@ class SteamMobile extends AppSource {
|
|||||||
if (apkNamePrefix == null) {
|
if (apkNamePrefix == null) {
|
||||||
throw NoReleasesError();
|
throw NoReleasesError();
|
||||||
}
|
}
|
||||||
String apkInURLRegexPattern = '/$apkNamePrefix-[^/]+\\.apk\$';
|
String apkInURLRegexPattern =
|
||||||
|
'/$apkNamePrefix-([0-9]+\\.)*[0-9]+\\.apk\$';
|
||||||
var links = parse(res.body)
|
var links = parse(res.body)
|
||||||
.querySelectorAll('a')
|
.querySelectorAll('a')
|
||||||
.map((e) => e.attributes['href'] ?? '')
|
.map((e) => e.attributes['href'] ?? '')
|
||||||
|
Reference in New Issue
Block a user