Skip to content

Commit

Permalink
fix: ng
Browse files Browse the repository at this point in the history
  • Loading branch information
Greatwallcorner committed Jul 22, 2024
1 parent aa61b0b commit fcd8d1d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Binary file modified jar/spider.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion json/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spider": "../jar/spider.jar;md5;46bed5fa69cfaf9aa2aec90250756a7f",
"spider": "../jar/spider.jar;md5;acef64807e7c10c8b665e51ff4e5e9d0",
"sites": [
{
"key": "Douban",
Expand Down
2 changes: 1 addition & 1 deletion json/configAll.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spider": "../jar/spider.jar;md5;46bed5fa69cfaf9aa2aec90250756a7f",
"spider": "../jar/spider.jar;md5;acef64807e7c10c8b665e51ff4e5e9d0",
"sites": [
{
"key": "Douban",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/catvod/spider/NG.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class NG: Spider() {
SpiderDebug.log("ng detail err: ${dt.msg}")
return Result.error(dt.msg)
}
return Result.string(dt.data.toVod())
return Result.string(dt.data.toVod().apply { setVodId(ids[0]) })
}

override fun playerContent(flag: String, id: String, vipFlags: MutableList<String>): String {
Expand Down
1 change: 1 addition & 0 deletions src/test/java/NgTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class NgTest:TestInterface<NG> {
@Test
override fun playTest() {
val playerContent = t.playerContent("", "http://43.248.129.14:20240/?url=https://svipsvip.ffzyread1.com/20240627/28803_0fc1e40f/index.m3u8", mutableListOf())
// val playerContent = t.playerContent("", "https://json.oorl.cn/api/svip.php?key=aYqmunbBybpvTu6hnZ&url=https://v.youku.com/v_show/id_XNjIyMjUxMzM2.html", mutableListOf())
println(playerContent)
}

Expand Down

0 comments on commit fcd8d1d

Please sign in to comment.