Skip to content

Commit beae9ad

Browse files
errorcodeQQerrorcodeQQ
authored andcommitted
fix(BinTV): resolve sports and PPV stream loading and playback errors
1 parent a457a59 commit beae9ad

9 files changed

Lines changed: 658 additions & 130 deletions

File tree

BinTV/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cloudstream {
77
tvTypes = listOf("Live")
88
language = "en"
99
iconUrl = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsQsag_KQPokaomZsgDV4fiXQ_fi494N6wV8cwKyQQuhSnOh1pAl4lV2Ur-yHCG6IFBimoeWaZKiOTQyyEmfYLetghJRbhyoTHZuzfbZ9VOWZV5aNE4L4akyYmk5D1sB-QLzVQLy200JxziBg0Wwetdxb0Ybf7oqv4R1W8t49rsYLsFkLHZuNPL42I8Q/s512/letter-b.png"
10+
requiresResources = false
1011
}
1112

1213
android {
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package com.bintv
22

3-
import com.lagradost.cloudstream3.plugins.BasePlugin
3+
import android.content.Context
4+
import com.lagradost.cloudstream3.plugins.Plugin
45
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
56

67
@CloudstreamPlugin
7-
class BinTVPlugin : BasePlugin() {
8-
override fun load() {
9-
// Register provider
8+
class BinTVPlugin : Plugin() {
9+
override fun load(context: Context) {
10+
BinTVProvider.context = context
1011
registerMainAPI(BinTVProvider())
1112
}
1213
}

BinTV/src/main/kotlin/com/bintv/BinTVProvider.kt

Lines changed: 159 additions & 89 deletions
Large diffs are not rendered by default.

BinTV/src/main/kotlin/com/bintv/EmbedIndiaExtractor.kt

Lines changed: 475 additions & 31 deletions
Large diffs are not rendered by default.

DiviCast/src/main/kotlin/com/divicast/DiviCastProvider.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ class DiviCastProvider : MainAPI() {
493493
return "DiviCast [$hostLabel]"
494494
}
495495

496+
@android.annotation.SuppressLint("NewApi")
496497
private fun base64Decode(str: String): ByteArray {
497498
return try {
498499
Base64.decode(str, Base64.DEFAULT)

ExampleProvider/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ cloudstream {
2626
}
2727

2828
android {
29-
namespace = "com.example"
29+
namespace = "com.errorcode26"
3030
buildFeatures {
3131
buildConfig = true
3232
viewBinding = false

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414

1515
dependencies {
1616
classpath("com.android.tools.build:gradle:9.1.1")
17-
classpath("com.github.recloudstream.gradle:gradle:81b1d424d")
17+
classpath("com.github.recloudstream.gradle:gradle:69fdb8fc")
1818
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.0")
1919
}
2020
}
@@ -47,10 +47,11 @@ subprojects {
4747
cloudstream {
4848
// when running through github workflow, GITHUB_REPOSITORY should contain current repository name
4949
setRepo(System.getenv("GITHUB_REPOSITORY") ?: "errorcode26/errorcodeQQ")
50+
authors = listOf("errorcode26")
5051
}
5152

5253
android {
53-
namespace = "com.example"
54+
namespace = "com.errorcode26"
5455
compileSdk = 36
5556

5657
defaultConfig {

gradle.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ android.buildFeatures.buildConfig=true
1313
org.gradle.caching=true
1414
org.gradle.configuration-cache=true
1515
android.javaCompile.suppressSourceTargetDeprecationWarning=true
16-
# Local JDK installation paths for toolchain resolution
17-
org.gradle.java.installations.paths=C:/Users/user/Desktop/plugin/cs3 plugin errorcode github/jdk17/jdk-17.0.2
18-
org.gradle.java.installations.auto-detect=false
16+

settings.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
google()
5+
mavenCentral()
6+
}
7+
}
8+
9+
plugins {
10+
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
11+
}
12+
113
rootProject.name = "CloudstreamPlugins"
214

315
// This file dynamically includes all plugin projects in the repository.

0 commit comments

Comments
 (0)