|  | @@ -29,14 +29,17 @@ internal class ExtensionGithubApi {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      suspend fun findExtensions(): List<Extension.Available> {
 | 
	
		
			
				|  |  |          return withIOContext {
 | 
	
		
			
				|  |  | -            val response = try {
 | 
	
		
			
				|  |  | +            val githubResponse = if (requiresFallbackSource) null else try {
 | 
	
		
			
				|  |  |                  networkService.client
 | 
	
		
			
				|  |  |                      .newCall(GET("${REPO_URL_PREFIX}index.min.json"))
 | 
	
		
			
				|  |  |                      .await()
 | 
	
		
			
				|  |  |              } catch (e: Throwable) {
 | 
	
		
			
				|  |  |                  logcat(LogPriority.ERROR, e) { "Failed to get extensions from GitHub" }
 | 
	
		
			
				|  |  |                  requiresFallbackSource = true
 | 
	
		
			
				|  |  | +                null
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +            val response = githubResponse ?: run {
 | 
	
		
			
				|  |  |                  networkService.client
 | 
	
		
			
				|  |  |                      .newCall(GET("${FALLBACK_REPO_URL_PREFIX}index.min.json"))
 | 
	
		
			
				|  |  |                      .await()
 | 
	
	
		
			
				|  | @@ -134,7 +137,7 @@ internal class ExtensionGithubApi {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  private const val REPO_URL_PREFIX = "https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/"
 | 
	
		
			
				|  |  | -private const val FALLBACK_REPO_URL_PREFIX = "https://fastly.jsdelivr.net/gh/tachiyomiorg/tachiyomi-extensions@repo/"
 | 
	
		
			
				|  |  | +private const val FALLBACK_REPO_URL_PREFIX = "https://gcore.jsdelivr.net/gh/tachiyomiorg/tachiyomi-extensions@repo/"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @Serializable
 | 
	
		
			
				|  |  |  private data class ExtensionJsonObject(
 |