Skip to content

Commit

Permalink
channel points fix
Browse files Browse the repository at this point in the history
(cherry picked from commit 87b8677)
  • Loading branch information
crackededed committed Apr 27, 2024
1 parent 0aea7df commit cd41511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
applicationId = "com.github.andreyasadchy.xtra"
minSdk = 21
targetSdk = 34
versionCode = 236
versionName = "2.31.1"
versionCode = 237
versionName = "2.31.2"
resourceConfigurations += listOf("ar", "de", "en", "es", "fr", "in", "it", "ja", "pt-rBR", "ru", "tr", "zh-rTW", "zh-rCN")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class ApiRepository @Inject constructor(
try {
val pageResponse = channelLogin?.let { misc.getChannelPage(it).string() }
if (!pageResponse.isNullOrBlank()) {
val settingsRegex = Regex("(https://static.twitchcdn.net/config/settings.*?js)")
val settingsRegex = Regex("(https://assets.twitch.tv/config/settings.*?.js|https://static.twitchcdn.net/config/settings.*?js)")
val settingsUrl = settingsRegex.find(pageResponse)?.value
val settingsResponse = settingsUrl?.let { misc.getUrl(it).string() }
if (!settingsResponse.isNullOrBlank()) {
Expand Down

0 comments on commit cd41511

Please sign in to comment.