mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	apkpure: only use nc query param if not empty
This commit is contained in:
		| @@ -87,9 +87,18 @@ class APKPure extends AppSource { | |||||||
|             type = 'APK'; |             type = 'APK'; | ||||||
|           } |           } | ||||||
|  |  | ||||||
|  |           var downloadUri = Uri.parse("https://d.cdnpure.com/b/$type/$appId"); | ||||||
|  |           var queryParameters = { | ||||||
|  |             "versionCode": versionCode, | ||||||
|  |           }; | ||||||
|  |           if (architectureString.isNotEmpty) { | ||||||
|  |             queryParameters["nc"] = architectureString; | ||||||
|  |           } | ||||||
|  |           downloadUri = downloadUri.replace(queryParameters: queryParameters); | ||||||
|  |  | ||||||
|           return MapEntry( |           return MapEntry( | ||||||
|               '$appId-$versionCode-$architectureString.${type.toLowerCase()}', |               '$appId-$versionCode-$architectureString.${type.toLowerCase()}', | ||||||
|               'https://d.cdnpure.com/b/$type/$appId?versionCode=$versionCode&nc=$architectureString'); |               downloadUri.toString()); | ||||||
|         }) |         }) | ||||||
|         .nonNulls |         .nonNulls | ||||||
|         .toList() |         .toList() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user