feat(de/aniworld,serienstream)remove login need (#1993)
This commit is contained in:
@ -6,7 +6,7 @@ ext {
|
|||||||
extName = 'AniWorld (experimental)'
|
extName = 'AniWorld (experimental)'
|
||||||
pkgNameSuffix = 'de.aniworld'
|
pkgNameSuffix = 'de.aniworld'
|
||||||
extClass = '.AniWorld'
|
extClass = '.AniWorld'
|
||||||
extVersionCode = 15
|
extVersionCode = 16
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,11 +30,13 @@ class AniWorldInterceptor(private val client: OkHttpClient, private val preferen
|
|||||||
}
|
}
|
||||||
|
|
||||||
val newCookie = getNewCookie(originalRequest.url)
|
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 {
|
val newCookieHeader = buildString {
|
||||||
(oldCookie + newCookie).forEachIndexed { index, cookie ->
|
(oldCookie + newCookie).forEachIndexed { index, cookie ->
|
||||||
if (index > 0) append("; ")
|
if (index > 0) append("; ")
|
||||||
append(cookie.name).append('=').append(cookie.value)
|
if (cookie != null) {
|
||||||
|
append(cookie.name).append('=').append(cookie.value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ ext {
|
|||||||
extName = 'Serienstream'
|
extName = 'Serienstream'
|
||||||
pkgNameSuffix = 'de.serienstream'
|
pkgNameSuffix = 'de.serienstream'
|
||||||
extClass = '.Serienstream'
|
extClass = '.Serienstream'
|
||||||
extVersionCode = 10
|
extVersionCode = 11
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,11 +30,13 @@ class SerienstreamInterceptor(private val client: OkHttpClient, private val pref
|
|||||||
}
|
}
|
||||||
|
|
||||||
val newCookie = getNewCookie(originalRequest.url)
|
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 {
|
val newCookieHeader = buildString {
|
||||||
(oldCookie + newCookie).forEachIndexed { index, cookie ->
|
(oldCookie + newCookie).forEachIndexed { index, cookie ->
|
||||||
if (index > 0) append("; ")
|
if (index > 0) append("; ")
|
||||||
append(cookie.name).append('=').append(cookie.value)
|
if (cookie != null) {
|
||||||
|
append(cookie.name).append('=').append(cookie.value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user