Skip to content

Commit

Permalink
update: JcyPlaySourceValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Sep 14, 2024
1 parent e68f2e7 commit bc82eb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,17 @@ class JcyPlaySourceValidator {
}

@Test
fun play_dilidili_iframe_valid() {
fun jx_cilicili_iframe_valid() {
val text = getHttpContent("https://jx.cilicili.one/player/?url=233")
check(text.indexOf("<iframe src=\"analysis.php?") >= -1)
}

@Test
fun dilidili_js_keyword_valid() {
fun jx_cilicili_keyword_valid() {
val text = getHttpContent("https://jx.cilicili.one/mizhiplayerapi/js/setting.js")
check(text.indexOf("YKQ.play(rc4(config.url,'202205051426239465',1));") >= -1)
}

// @Test
fun libilibi_js_keyword_valid() {
val text = getHttpContent("https://play.libilibi.top/js/setting.js")
check(text.indexOf("\$.post(\"\", {") >= -1)
}

private fun getHttpContent(url: String): String = URL(url).openConnection()
.getInputStream().use {
it.readAllBytes().decodeToString()
Expand Down

This file was deleted.

0 comments on commit bc82eb7

Please sign in to comment.