mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Allow existing '/refs' in SourceHut URLs (#1347)
This commit is contained in:
		| @@ -39,6 +39,15 @@ class SourceHut extends AppSource { | ||||
|     String standardUrl, | ||||
|     Map<String, dynamic> additionalSettings, | ||||
|   ) async { | ||||
|     if (standardUrl.endsWith('/refs')) { | ||||
|       standardUrl = standardUrl | ||||
|           .split('/') | ||||
|           .reversed | ||||
|           .toList() | ||||
|           .sublist(1) | ||||
|           .reversed | ||||
|           .join('/'); | ||||
|     } | ||||
|     Uri standardUri = Uri.parse(standardUrl); | ||||
|     String appName = standardUri.pathSegments.last; | ||||
|     bool fallbackToOlderReleases = | ||||
|   | ||||
		Reference in New Issue
	
	Block a user