mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed crash and readded trailers.to
This commit is contained in:
parent
830871682f
commit
ac17b904b7
3 changed files with 5 additions and 5 deletions
|
@ -35,8 +35,8 @@ android {
|
|||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
|
||||
versionCode 39
|
||||
versionName "2.4.7"
|
||||
versionCode 40
|
||||
versionName "2.4.8"
|
||||
|
||||
resValue "string", "app_version",
|
||||
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
|
||||
|
|
|
@ -64,7 +64,8 @@ object APIHolder {
|
|||
ZoroProvider(),
|
||||
PinoyMoviePediaProvider(),
|
||||
PinoyHDXyzProvider(),
|
||||
PinoyMoviesEsProvider()
|
||||
PinoyMoviesEsProvider(),
|
||||
TrailersTwoProvider(),
|
||||
)
|
||||
|
||||
val restrictedApis = arrayListOf(
|
||||
|
@ -76,7 +77,6 @@ object APIHolder {
|
|||
|
||||
private val backwardsCompatibleProviders = arrayListOf(
|
||||
KawaiifuProvider(), // removed due to cloudflare
|
||||
TrailersTwoProvider(), // removed due to no videos working
|
||||
)
|
||||
|
||||
fun getApiFromName(apiName: String?): MainAPI {
|
||||
|
|
|
@ -71,7 +71,7 @@ suspend fun <T> safeApiCall(
|
|||
when (throwable) {
|
||||
is NullPointerException -> {
|
||||
for (line in throwable.stackTrace) {
|
||||
if (line.fileName.endsWith("provider.kt", ignoreCase = true)) {
|
||||
if (line?.fileName?.endsWith("provider.kt", ignoreCase = true) == true) {
|
||||
return@withContext Resource.Failure(
|
||||
false,
|
||||
null,
|
||||
|
|
Loading…
Reference in a new issue