Skip to content

Commit

Permalink
update(play source): NBY lzm3u8 ffm3u8 is available now
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Apr 11, 2024
1 parent 66cd1d6 commit ada0c94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions app/src/main/kotlin/com/muedsa/jcytv/util/JcyHtmlTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object JcyHtmlTool {
private val DILIDILI_ENCRYPTED_URL_REGEX = Regex("\"url\": \"([A-Za-z0-9+/=\\\\]*?)\"")

val DECRYPT_DILIDILI: (String) -> String = { key: String ->
val doc: Document = Jsoup.connect("https://v.dilidili.ink/player/analysis.php?v=$key")
val doc: Document = Jsoup.connect("https://play.dilidili.ink/player/analysis.php?v=$key")
.header(HttpHeaders.REFERER, MAIN_SITE_URL)
.get()
val bodyHtml = doc.body().html()
Expand All @@ -75,14 +75,14 @@ object JcyHtmlTool {
}

val PLAYER_SITE_MAP: Map<String, (String) -> String> = mapOf(
"NBY" to DECRYPT_DILIDILI, // ✅囧次元N https://v.dilidili.ink/player/?url=
"NBY" to DECRYPT_DILIDILI, // ✅囧次元N
"ttnb" to DECRYPT_DILIDILI, // https://v.dilidili.ink/player/?url=
"lzm3u8" to DECRYPT_DILIDILI, // ✅囧次元Z https://v.dilidili.ink/player/?url=
"snm3u8" to DECRYPT_DILIDILI, // ✅囧次元O https://v.dilidili.ink/player/?url=
"lzm3u8" to DECRYPT_DILIDILI, // ✅囧次元Z
"snm3u8" to DECRYPT_DILIDILI, // ✅囧次元O
"cycp" to DECRYPT_DEFAULT, // ?
"ffm3u8" to DECRYPT_LIBILIBI, // ✅囧次元A https://play.libilibi.top/?url=
"ffm3u8" to DECRYPT_DILIDILI, // ✅囧次元A
"SLNB" to DECRYPT_DEFAULT, // ?
"dplayer" to DECRYPT_DEFAULT, // ✅囧次元VIP dplayer
"dplayer" to DECRYPT_DEFAULT, // dplayer
"videojs" to DECRYPT_NOT_SUPPORT, // 不支持videojs
"iva" to DECRYPT_DEFAULT,
"iframe" to DECRYPT_NOT_SUPPORT, // 不支持iframe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class JcyPlayUrlDecryptValidator {

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

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

0 comments on commit ada0c94

Please sign in to comment.