mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-30 12:30:16 +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
|
||||
if (originalAdditionalSettings['intermediateLinkRegex'] != null &&
|
||||
additionalSettings['intermediateLink']?.isNotEmpty != true) {
|
||||
additionalSettings['intermediateLinkRegex']?.isNotEmpty != true) {
|
||||
additionalSettings['intermediateLink'] = [
|
||||
{
|
||||
'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);
|
||||
// F-Droid no longer needs cloudflare exception since override can be used - migrate apps appropriately
|
||||
|
Reference in New Issue
Block a user