mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 05:10:15 +02:00
HTML intermediate link bugfix (#1211)
This commit is contained in:
@@ -147,7 +147,7 @@ appJSONCompatibilityModifiers(Map<String, dynamic> json) {
|
|||||||
}
|
}
|
||||||
// HTML single 'intermediate link' should be converted to multi-support version
|
// HTML single 'intermediate link' should be converted to multi-support version
|
||||||
if (originalAdditionalSettings['intermediateLinkRegex'] != null &&
|
if (originalAdditionalSettings['intermediateLinkRegex'] != null &&
|
||||||
additionalSettings['intermediateLink']?.isNotEmpty != true) {
|
additionalSettings['intermediateLinkRegex']?.isNotEmpty != true) {
|
||||||
additionalSettings['intermediateLink'] = [
|
additionalSettings['intermediateLink'] = [
|
||||||
{
|
{
|
||||||
'customLinkFilterRegex':
|
'customLinkFilterRegex':
|
||||||
@@ -157,6 +157,12 @@ appJSONCompatibilityModifiers(Map<String, dynamic> json) {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
if ((additionalSettings['intermediateLink']?.length ?? 0) > 0) {
|
||||||
|
additionalSettings['intermediateLink'] =
|
||||||
|
additionalSettings['intermediateLink'].where((e) {
|
||||||
|
return e['intermediateLinkRegex']?.isNotEmpty == true;
|
||||||
|
}).toList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json['additionalSettings'] = jsonEncode(additionalSettings);
|
json['additionalSettings'] = jsonEncode(additionalSettings);
|
||||||
// F-Droid no longer needs cloudflare exception since override can be used - migrate apps appropriately
|
// F-Droid no longer needs cloudflare exception since override can be used - migrate apps appropriately
|
||||||
|
Reference in New Issue
Block a user