mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-26 03:03:45 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			7391e9a94d
			...
			3af185b0f8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 3af185b0f8 | ||
|  | bfbb2710b6 | ||
|  | c81c3c5ea7 | 
| @@ -146,10 +146,7 @@ Future<List<MapEntry<String, String>>> grabLinksCommon( | ||||
|       .map((e) => MapEntry(ensureAbsoluteUrl(e.key, reqUrl), e.value)) | ||||
|       .toList(); | ||||
|   if (allLinks.isEmpty || matchLinksOutsideATags) { | ||||
|     allLinks = getLinksInLines(rawBody); | ||||
|   } | ||||
|   if (allLinks.isEmpty) { | ||||
|     // Getting desperate | ||||
|     // Decode the body if the response is a JSON | ||||
|     try { | ||||
|       var jsonStrings = collectAllStringsFromJSONObject(jsonDecode(rawBody)); | ||||
|       allLinks = getLinksInLines(jsonStrings.join('\n')); | ||||
| @@ -163,7 +160,7 @@ Future<List<MapEntry<String, String>>> grabLinksCommon( | ||||
|         ); | ||||
|       } | ||||
|     } catch (e) { | ||||
|       // | ||||
|       allLinks = getLinksInLines(rawBody); | ||||
|     } | ||||
|   } | ||||
|   List<MapEntry<String, String>> links = []; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user