Skip to content

Commit

Permalink
Update OpenSubtitlesApi.kt (#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
CranberrySoup authored Oct 16, 2024
1 parent d870978 commit f30319f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OpenSubtitlesApi(index: Int) : InAppAuthAPIManager(index), AbstractSubApi
/** Automatically adds required api headers */
private class OpenSubtitleInterceptor : Interceptor {
/** Required user agent! */
private val userAgent = "Cloudstream3 v0.1"
private val userAgent = "Cloudstream3 v0.2"
override fun intercept(chain: Interceptor.Chain): Response {
return chain.proceed(
chain.request().newBuilder()
Expand Down Expand Up @@ -118,7 +118,7 @@ class OpenSubtitlesApi(index: Int) : InAppAuthAPIManager(index), AbstractSubApi
headers = mapOf(
"Content-Type" to "application/json",
),
data = mapOf(
json = mapOf(
"username" to username,
"password" to password
),
Expand Down

0 comments on commit f30319f

Please sign in to comment.