diff --git a/app/build.gradle b/app/build.gradle index f2a692ad..71c8475d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -84,16 +84,12 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1" - implementation('io.ktor:ktor-server-core:2.3.4') { - exclude group : "org.slf4j", module : "slf4j-api" - - } - implementation('io.ktor:ktor-server-cio:2.3.4') { - exclude group : "org.slf4j", module : "slf4j-api" - } + implementation 'io.ktor:ktor-server-core:2.3.4' + implementation 'io.ktor:ktor-server-cio:2.3.4' implementation 'io.ktor:ktor-server-call-logging:2.3.4' - implementation("ch.qos.logback:logback-classic:1.2.6") + implementation("org.slf4j:slf4j-simple:1.7.36") + //implementation 'wang.harlon.quickjs:wrapper-java:1.0.0' // implementation(ext: 'aar', name: 'quickjs', group: 'fongmi', version: 'release') // api 'wang.harlon.quickjs:wrapper-android:2.0.0' diff --git a/app/src/main/java/com/github/catvod/utils/ktorServer.kt b/app/src/main/java/com/github/catvod/utils/ktorServer.kt index e57df71c..93d14efd 100644 --- a/app/src/main/java/com/github/catvod/utils/ktorServer.kt +++ b/app/src/main/java/com/github/catvod/utils/ktorServer.kt @@ -60,6 +60,7 @@ object KtorServer { /** 启动服务器 */ fun start() { + SpiderDebug.log("ktorServer start on $port") CoroutineScope(Dispatchers.IO).launch { server.start(true) } } diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index fdd6f012..2e9b0c92 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 001a1195..9bbe4f85 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -96a7cb9b87ece2ef9276d43c5848c47a +6dcdbca14cd1a6d6dc5d62458bcc58d2 diff --git a/json/test.json b/json/test.json index d2c3e735..7144be5f 100644 --- a/json/test.json +++ b/json/test.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;96a7cb9b87ece2ef9276d43c5848c47a", + "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;6dcdbca14cd1a6d6dc5d62458bcc58d2", "lives": [ { "name": "电视直播",