Skip to content

Commit

Permalink
fix: Use mirror.ghproxy.com replace ghproxy.com
Browse files Browse the repository at this point in the history
  • Loading branch information
KimmyXYC committed Apr 8, 2024
1 parent f04e9bb commit 3540208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/me/iacn/biliroaming/utils/SubtitleHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ object SubtitleHelper {
var dictUrl = json.optJSONArray("assets")
?.optJSONObject(0)?.optString("browser_download_url")
.takeUnless { it.isNullOrEmpty() } ?: return null
dictUrl = "https://ghproxy.com/$dictUrl"
dictUrl = "https://mirror.ghproxy.com/$dictUrl"
runCatching {
dictFile.outputStream().use { o ->
GZIPInputStream(URL(dictUrl).openStream())
Expand Down Expand Up @@ -365,4 +365,4 @@ object SubtitleHelper {
}
return result.toString()
}
}
}

0 comments on commit 3540208

Please sign in to comment.