feat(de/aniworld,serienstream)remove login need (#1993)

This commit is contained in:
LuftVerbot
2023-08-02 08:50:44 +02:00
committed by GitHub
parent 0aa69e83d8
commit 8807b3ae5a
4 changed files with 10 additions and 6 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'AniWorld (experimental)'
pkgNameSuffix = 'de.aniworld'
extClass = '.AniWorld'
extVersionCode = 15
extVersionCode = 16
libVersion = '13'
}

View File

@ -30,11 +30,13 @@ class AniWorldInterceptor(private val client: OkHttpClient, private val preferen
}
val newCookie = getNewCookie(originalRequest.url)
?: throw Exception("Bitte im Browser oder in den Erweiterungs-Einstellungen einloggen.")
// ?: throw Exception("Bitte im Browser oder in den Erweiterungs-Einstellungen einloggen.")
val newCookieHeader = buildString {
(oldCookie + newCookie).forEachIndexed { index, cookie ->
if (index > 0) append("; ")
append(cookie.name).append('=').append(cookie.value)
if (cookie != null) {
append(cookie.name).append('=').append(cookie.value)
}
}
}

View File

@ -6,7 +6,7 @@ ext {
extName = 'Serienstream'
pkgNameSuffix = 'de.serienstream'
extClass = '.Serienstream'
extVersionCode = 10
extVersionCode = 11
libVersion = '13'
}

View File

@ -30,11 +30,13 @@ class SerienstreamInterceptor(private val client: OkHttpClient, private val pref
}
val newCookie = getNewCookie(originalRequest.url)
?: throw Exception("Bitte im Browser oder in den Erweiterungs-Einstellungen einloggen.")
//?: throw Exception("Bitte im Browser oder in den Erweiterungs-Einstellungen einloggen.")
val newCookieHeader = buildString {
(oldCookie + newCookie).forEachIndexed { index, cookie ->
if (index > 0) append("; ")
append(cookie.name).append('=').append(cookie.value)
if (cookie != null) {
append(cookie.name).append('=').append(cookie.value)
}
}
}