This commit is contained in:
Li ZongYing
2024-02-07 02:57:36 +08:00
parent 960f890ddd
commit 526a7c5c40
5 changed files with 106 additions and 50 deletions
@@ -41,7 +41,7 @@ class Request {
private val regex = Regex("""des_key = "([^"]+).+var des_iv = "([^"]+)""") private val regex = Regex("""des_key = "([^"]+).+var des_iv = "([^"]+)""")
private val input = private val input =
"""{"mver":"1","subver":"1.2","host":"www.yangshipin.cn/#/tv/home?pid=","referer":"","canvas":"YSPANGLE(Apple,AppleM1Pro,OpenGL4.1)"}""".toByteArray() """{"mver":"1","subver":"1.2","host":"www.yangshipin.cn/#/tv/home?pid=","referer":"","canvas":"YSPANGLE(Apple,ANGLEMetalRenderer:AppleM1Pro,UnspecifiedVersion)"}""".toByteArray()
private var mapping = mapOf( private var mapping = mapOf(
"CCTV4K" to "CCTV4K 超高清", "CCTV4K" to "CCTV4K 超高清",
@@ -118,6 +118,7 @@ class Request {
override fun onResponse(call: Call<LiveInfo>, response: Response<LiveInfo>) { override fun onResponse(call: Call<LiveInfo>, response: Response<LiveInfo>) {
if (response.isSuccessful) { if (response.isSuccessful) {
val liveInfo = response.body() val liveInfo = response.body()
if (liveInfo?.data?.playurl != null) { if (liveInfo?.data?.playurl != null) {
val chanll = liveInfo.data.chanll val chanll = liveInfo.data.chanll
val decodedBytes = Base64.decode( val decodedBytes = Base64.decode(
@@ -133,8 +134,8 @@ class Request {
val url = liveInfo.data.playurl + "&revoi=" + encryptTripleDES( val url = liveInfo.data.playurl + "&revoi=" + encryptTripleDES(
keyBytes + byteArrayOf(0, 0, 0, 0, 0, 0, 0, 0), keyBytes + byteArrayOf(0, 0, 0, 0, 0, 0, 0, 0),
ivBytes ivBytes
).uppercase() ).uppercase() + liveInfo.data.extended_param
// Log.d(TAG, "$title url $url") Log.d(TAG, "$title url $url")
tvModel.addVideoUrl(url) tvModel.addVideoUrl(url)
tvModel.allReady() tvModel.allReady()
tvModel.retryTimes = 0 tvModel.retryTimes = 0
@@ -354,29 +355,21 @@ class Request {
) { ) {
if (response.isSuccessful) { if (response.isSuccessful) {
val body = response.body() val body = response.body()
if (body?.data?.feedModuleListCount == 1) { if (body?.data?.feedModuleListCount == 1) {
for (item in body.data?.feedModuleListList!![0]?.dataTvChannelListList!!) { for (item in body.data?.feedModuleListList!![0]?.dataTvChannelListList!!) {
if (item.isVip && !item.isLimitedFree) { Log.d(
continue
}
Log.i(
TAG, TAG,
"${item.channelName},${item.pid},${item.streamId}" "${item.channelName},${item.pid},${item.streamId}"
) )
var channelType = "央视频道"
if (item?.channelType === "weishi") { for ((_, v) in TVList.list) {
channelType = "地方频道" for (v2 in v) {
Log.i(TAG, "$v2")
if (v2.title == item.channelName || v2.alias == item.channelName) {
v2.pid = item.pid
v2.sid = item.streamId
} }
if (!mapping.containsKey(item.channelName)) {
continue
} }
val tv =
TVList.list?.get(channelType)?.find { it.title == mapping[item.channelName] }
if (tv != null) {
tv.logo = item.tvLogo
tv.pid = item.pid
tv.sid = item.streamId
} }
} }
} }
+4 -3
View File
@@ -5,6 +5,7 @@ import java.io.Serializable
data class TV( data class TV(
var id: Int = 0, var id: Int = 0,
var title: String, var title: String,
var alias: String = "",
var videoUrl: List<String>, var videoUrl: List<String>,
var videoIndex: Int = 0, var videoIndex: Int = 0,
var channel: String = "", var channel: String = "",
@@ -12,10 +13,10 @@ data class TV(
var pid: String = "", var pid: String = "",
var sid: String = "", var sid: String = "",
var programId: String = "", var programId: String = "",
var needToken:Boolean=false, var needToken: Boolean = false,
var mustToken:Boolean=false, var mustToken: Boolean = false,
) : Serializable { ) : Serializable {
override fun toString(): String { override fun toString(): String {
return "TV{" + return "TV{" +
+87 -25
View File
@@ -13,12 +13,13 @@ object TVList {
TV( TV(
0, 0,
"CCTV1 综合", "CCTV1 综合",
"CCTV1",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226231/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226231/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/d57905b93540bd15f0c48230dbbbff7ee0d645ff539e38866e2d15c8b9f7dfcd.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/d57905b93540bd15f0c48230dbbbff7ee0d645ff539e38866e2d15c8b9f7dfcd.png?imageMogr2/format/webp",
"600001859", "600001859",
"2000210103", "2022576801",
"600001859", "600001859",
false, false,
mustToken = false mustToken = false
@@ -26,12 +27,13 @@ object TVList {
TV( TV(
1, 1,
"CCTV2 财经", "CCTV2 财经",
"CCTV2",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226195/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226195/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/20115388de0207131af17eac86c33049b95d69eaff064e55653a1b941810a006.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/20115388de0207131af17eac86c33049b95d69eaff064e55653a1b941810a006.png?imageMogr2/format/webp",
"600001800", "600001800",
"2000203603", "2022576701",
"600001800", "600001800",
true, true,
mustToken = false mustToken = false
@@ -39,12 +41,13 @@ object TVList {
TV( TV(
2, 2,
"CCTV3 综艺", "CCTV3 综艺",
"CCTV3",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226397/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226397/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/7b7a65c712450da3deb6ca66fbacf4f9aee00d3f20bd80eafb5ada01ec63eb3a.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/7b7a65c712450da3deb6ca66fbacf4f9aee00d3f20bd80eafb5ada01ec63eb3a.png?imageMogr2/format/webp",
"600001801", "600001801",
"2000203803", "2022576501",
"600001801", "600001801",
true, true,
mustToken = true mustToken = true
@@ -52,6 +55,7 @@ object TVList {
TV( TV(
3, 3,
"CCTV4 中文国际", "CCTV4 中文国际",
"CCTV4",
listOf( listOf(
"http://39.134.24.161/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226191/index.m3u8", "http://39.134.24.161/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226191/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226191/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226191/index.m3u8"
@@ -60,7 +64,7 @@ object TVList {
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/f357e58fdbcc076a3d65e1f958c942b2e14f14342c60736ceed98b092d35356a.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/f357e58fdbcc076a3d65e1f958c942b2e14f14342c60736ceed98b092d35356a.png?imageMogr2/format/webp",
"600001814", "600001814",
"2000204803", "2022576601",
"600001814", "600001814",
false, false,
mustToken = false mustToken = false
@@ -68,12 +72,13 @@ object TVList {
TV( TV(
4, 4,
"CCTV5 体育", "CCTV5 体育",
"CCTV5",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226395/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226395/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/0a6a7138952675983a3d854df7688557b286d59aa06166edae51506f9204d655.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/0a6a7138952675983a3d854df7688557b286d59aa06166edae51506f9204d655.png?imageMogr2/format/webp",
"600001818", "600001818",
"2000205103", "2022576401",
"600001818", "600001818",
true, true,
mustToken = false mustToken = false
@@ -81,12 +86,13 @@ object TVList {
TV( TV(
5, 5,
"CCTV6 电影", "CCTV6 电影",
"CCTV6",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226393/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226393/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/741515efda91f03f455df8a7da4ee11fa9329139c276435cf0a9e2af398d5bf2.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/741515efda91f03f455df8a7da4ee11fa9329139c276435cf0a9e2af398d5bf2.png?imageMogr2/format/webp",
"600001802", "600001802",
"2013693901", "2022574301",
"600001802", "600001802",
true, true,
mustToken = true mustToken = true
@@ -94,12 +100,13 @@ object TVList {
TV( TV(
6, 6,
"CCTV7 国防军事", "CCTV7 国防军事",
"CCTV7",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226192/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226192/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/b29af94e295ebdf646cefb68122c429b9cd921f498ca20d2d8070252536f9ff9.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/b29af94e295ebdf646cefb68122c429b9cd921f498ca20d2d8070252536f9ff9.png?imageMogr2/format/webp",
"600004092", "600004092",
"2000510003", "2022576201",
"600004092", "600004092",
true, true,
mustToken = false mustToken = false
@@ -107,12 +114,13 @@ object TVList {
TV( TV(
7, 7,
"CCTV8 电视剧", "CCTV8 电视剧",
"CCTV8",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226391/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226391/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/ad51de94426a0ba039e6dd6a8534ea98ecc813a6176bde87b4f18cc34d6d7590.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/ad51de94426a0ba039e6dd6a8534ea98ecc813a6176bde87b4f18cc34d6d7590.png?imageMogr2/format/webp",
"600001803", "600001803",
"2000203903", "2022576101",
"600001803", "600001803",
true, true,
mustToken = true mustToken = true
@@ -120,12 +128,13 @@ object TVList {
TV( TV(
8, 8,
"CCTV9 记录", "CCTV9 记录",
"CCTV9",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226197/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226197/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/2ed1b4deeca179d5db806bb941790f82eb92a1b7299c1c38fe027f95a5caee5e.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/2ed1b4deeca179d5db806bb941790f82eb92a1b7299c1c38fe027f95a5caee5e.png?imageMogr2/format/webp",
"600004078", "600004078",
"2000499403", "2022576001",
"600004078", "600004078",
true, true,
mustToken = false mustToken = false
@@ -133,12 +142,13 @@ object TVList {
TV( TV(
9, 9,
"CCTV10 科教", "CCTV10 科教",
"CCTV10",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226189/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226189/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/aa6157ec65188cd41826e5a2f088c3d6d153205f5f6428258d12c59999e221aa.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/aa6157ec65188cd41826e5a2f088c3d6d153205f5f6428258d12c59999e221aa.png?imageMogr2/format/webp",
"600001805", "600001805",
"2000203503", "2022573001",
"600001805", "600001805",
true, true,
mustToken = false mustToken = false
@@ -146,12 +156,13 @@ object TVList {
TV( TV(
10, 10,
"CCTV11 戏曲", "CCTV11 戏曲",
"CCTV11",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226240/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226240/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/ed12ed7c7a1034dae4350011fe039284c5d5a836506b28c9e32e3c75299625c0.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/ed12ed7c7a1034dae4350011fe039284c5d5a836506b28c9e32e3c75299625c0.png?imageMogr2/format/webp",
"600001806", "600001806",
"2000204103", "2022575901",
"600001806", "600001806",
true, true,
mustToken = false mustToken = false
@@ -159,12 +170,13 @@ object TVList {
TV( TV(
11, 11,
"CCTV12 社会与法", "CCTV12 社会与法",
"CCTV12",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226190/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226190/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/484083cffaa40df7e659565e8cb4d1cc740158a185512114167aa21fa0c59240.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/484083cffaa40df7e659565e8cb4d1cc740158a185512114167aa21fa0c59240.png?imageMogr2/format/webp",
"600001807", "600001807",
"2000202603", "2022575801",
"600001807", "600001807",
true, true,
mustToken = false mustToken = false
@@ -172,6 +184,7 @@ object TVList {
TV( TV(
12, 12,
"CCTV13 新闻", "CCTV13 新闻",
"CCTV13",
listOf( listOf(
"https://live-play.cctvnews.cctv.com/cctv/merge_cctv13.m3u8", "https://live-play.cctvnews.cctv.com/cctv/merge_cctv13.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226233/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226233/index.m3u8"
@@ -180,7 +193,7 @@ object TVList {
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/266da7b43c03e2312186b4a999e0f060e8f15b10d2cc2c9aa32171819254cf1a.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/266da7b43c03e2312186b4a999e0f060e8f15b10d2cc2c9aa32171819254cf1a.png?imageMogr2/format/webp",
"600001811", "600001811",
"2000204603", "2022575701",
"600001811", "600001811",
false, false,
mustToken = false mustToken = false
@@ -188,12 +201,13 @@ object TVList {
TV( TV(
13, 13,
"CCTV14 少儿", "CCTV14 少儿",
"CCTV14",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226193/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226193/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/af6b603896938dc346fbb16abfc63c12cba54b0ec9d18770a15d347d115f12d5.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/af6b603896938dc346fbb16abfc63c12cba54b0ec9d18770a15d347d115f12d5.png?imageMogr2/format/webp",
"600001809", "600001809",
"2000204403", "2022575601",
"600001809", "600001809",
true, true,
mustToken = false mustToken = false
@@ -201,12 +215,13 @@ object TVList {
TV( TV(
14, 14,
"CCTV15 音乐", "CCTV15 音乐",
"CCTV15",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225785/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225785/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/2ceee92188ef684efe0d8b90839c4f3ad450d179dc64d59beff417059453af47.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/2ceee92188ef684efe0d8b90839c4f3ad450d179dc64d59beff417059453af47.png?imageMogr2/format/webp",
"600001815", "600001815",
"2000205003", "2022575501",
"600001815", "600001815",
true, true,
mustToken = false mustToken = false
@@ -214,6 +229,7 @@ object TVList {
TV( TV(
15, 15,
"CCTV16 奥林匹克", "CCTV16 奥林匹克",
"CCTV16-HD",
listOf( listOf(
"http://39.134.24.162/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226921/index.m3u8", "http://39.134.24.162/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226921/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226921/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226921/index.m3u8"
@@ -222,7 +238,7 @@ object TVList {
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/53793fa7bacd3a93ff6dc5d2758418985e1f952a316c335d663b572d8bdcd74d.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/53793fa7bacd3a93ff6dc5d2758418985e1f952a316c335d663b572d8bdcd74d.png?imageMogr2/format/webp",
"600098637", "600098637",
"2012375003", "2022575401",
"600098637", "600098637",
true, true,
mustToken = false mustToken = false
@@ -230,12 +246,13 @@ object TVList {
TV( TV(
16, 16,
"CCTV17 农业农村", "CCTV17 农业农村",
"CCTV17",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226198/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226198/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/ddef563072f8bad2bea5b9e52674cb7b4ed50efb20c26e61994dfbdf05c1e3c0.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/ddef563072f8bad2bea5b9e52674cb7b4ed50efb20c26e61994dfbdf05c1e3c0.png?imageMogr2/format/webp",
"600001810", "600001810",
"2000204203", "2022575301",
"600001810", "600001810",
true, true,
mustToken = false mustToken = false
@@ -243,12 +260,13 @@ object TVList {
TV( TV(
17, 17,
"CCTV5+ 体育赛事", "CCTV5+ 体育赛事",
"CCTV5+",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226221/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226221/index.m3u8"),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/649ad76a90bfef55b05db9fe52e006487280f619089099d5dc971e387fc6eff0.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/649ad76a90bfef55b05db9fe52e006487280f619089099d5dc971e387fc6eff0.png?imageMogr2/format/webp",
"600001817", "600001817",
"2000204503", "2022576301",
"600001817", "600001817",
true, true,
mustToken = false mustToken = false
@@ -256,12 +274,13 @@ object TVList {
TV( TV(
18, 18,
"CCTV4K 超高清", "CCTV4K 超高清",
"CCTV4K",
listOf(), listOf(),
0, 0,
"央视频道", "央视频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/3e9d06fd7244d950df5838750f1c6ac3456e172b51caca2c16d2282125b111e8.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/3e9d06fd7244d950df5838750f1c6ac3456e172b51caca2c16d2282125b111e8.png?imageMogr2/format/webp",
"600002264", "600002264",
"2000266303", "2022575201",
"600002264", "600002264",
true, true,
mustToken = false mustToken = false
@@ -269,6 +288,7 @@ object TVList {
TV( TV(
19, 19,
"CCTV8K 超高清", "CCTV8K 超高清",
"CCTV8K",
listOf(), listOf(),
0, 0,
"央视频道", "央视频道",
@@ -282,6 +302,7 @@ object TVList {
TV( TV(
20, 20,
"风云剧场", "风云剧场",
"CCTV风云剧场频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226950/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226950/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -295,6 +316,7 @@ object TVList {
TV( TV(
21, 21,
"第一剧场", "第一剧场",
"CCTV第一剧场频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226959/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226959/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -308,6 +330,7 @@ object TVList {
TV( TV(
22, 22,
"怀旧剧场", "怀旧剧场",
"CCTV怀旧剧场频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226972/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226972/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -321,6 +344,7 @@ object TVList {
TV( TV(
23, 23,
"世界地理", "世界地理",
"CCTV世界地理频道",
listOf(), listOf(),
0, 0,
"央视频道", "央视频道",
@@ -334,6 +358,7 @@ object TVList {
TV( TV(
24, 24,
"风云音乐", "风云音乐",
"CCTV风云音乐频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226953/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226953/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -347,6 +372,7 @@ object TVList {
TV( TV(
25, 25,
"兵器科技", "兵器科技",
"CCTV兵器科技频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226975/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226975/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -360,6 +386,7 @@ object TVList {
TV( TV(
26, 26,
"风云足球", "风云足球",
"CCTV风云足球频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226984/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226984/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -373,6 +400,7 @@ object TVList {
TV( TV(
27, 27,
"高尔夫网球", "高尔夫网球",
"CCTV高尔夫·网球频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226978/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226978/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -386,6 +414,7 @@ object TVList {
TV( TV(
28, 28,
"女性时尚", "女性时尚",
"CCTV女性时尚频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226969/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226969/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -399,6 +428,7 @@ object TVList {
TV( TV(
29, 29,
"央视文化精品", "央视文化精品",
"CCTV央视文化精品频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226981/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226981/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -412,6 +442,7 @@ object TVList {
TV( TV(
30, 30,
"央视台球", "央视台球",
"CCTV央视台球频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226956/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226956/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -425,6 +456,7 @@ object TVList {
TV( TV(
31, 31,
"电视指南", "电视指南",
"CCTV电视指南频道",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226987/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226987/index.m3u8"),
0, 0,
"央视频道", "央视频道",
@@ -438,6 +470,7 @@ object TVList {
TV( TV(
32, 32,
"卫生健康", "卫生健康",
"CCTV卫生健康频道",
listOf(), listOf(),
0, 0,
"央视频道", "央视频道",
@@ -453,6 +486,7 @@ object TVList {
TV( TV(
33, 33,
"东方卫视", "东方卫视",
"东方卫视",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226217/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226217/index.m3u8"),
0, 0,
"地方频道", "地方频道",
@@ -466,6 +500,7 @@ object TVList {
TV( TV(
34, 34,
"湖南卫视", "湖南卫视",
"湖南卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226307/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226307/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226211/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226211/index.m3u8"
@@ -482,6 +517,7 @@ object TVList {
TV( TV(
35, 35,
"湖北卫视", "湖北卫视",
"湖北卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226477/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226477/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226194/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226194/index.m3u8"
@@ -498,6 +534,7 @@ object TVList {
TV( TV(
36, 36,
"辽宁卫视", "辽宁卫视",
"辽宁卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226546/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226546/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226201/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226201/index.m3u8"
@@ -514,6 +551,7 @@ object TVList {
TV( TV(
37, 37,
"江苏卫视", "江苏卫视",
"江苏卫视",
listOf( listOf(
"http://39.134.24.166/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226200/index.m3u8", "http://39.134.24.166/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226200/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226200/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226200/index.m3u8"
@@ -530,6 +568,7 @@ object TVList {
TV( TV(
38, 38,
"江西卫视", "江西卫视",
"江西卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226344/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226344/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225764/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225764/index.m3u8"
@@ -546,6 +585,7 @@ object TVList {
TV( TV(
39, 39,
"山东卫视", "山东卫视",
"山东卫视",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226209/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226209/index.m3u8"),
0, 0,
"地方频道", "地方频道",
@@ -559,6 +599,7 @@ object TVList {
TV( TV(
40, 40,
"广东卫视", "广东卫视",
"广东卫视",
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226216/index.m3u8"), listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226216/index.m3u8"),
0, 0,
"地方频道", "地方频道",
@@ -572,6 +613,7 @@ object TVList {
TV( TV(
41, 41,
"广西卫视", "广西卫视",
"广西卫视",
listOf( listOf(
"http://live.gxrb.com.cn/tv/gxtvlive03/index.m3u8", "http://live.gxrb.com.cn/tv/gxtvlive03/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225770/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225770/index.m3u8"
@@ -588,6 +630,7 @@ object TVList {
TV( TV(
42, 42,
"重庆卫视", "重庆卫视",
"重庆卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226409/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226409/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226202/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226202/index.m3u8"
@@ -604,6 +647,7 @@ object TVList {
TV( TV(
43, 43,
"河南卫视", "河南卫视",
"河南卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226480/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226480/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225767/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225767/index.m3u8"
@@ -620,6 +664,7 @@ object TVList {
TV( TV(
44, 44,
"河北卫视", "河北卫视",
"河北卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226406/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226406/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225750/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225750/index.m3u8"
@@ -636,6 +681,7 @@ object TVList {
TV( TV(
45, 45,
"贵州卫视", "贵州卫视",
"贵州卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226474/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226474/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225793/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225793/index.m3u8"
@@ -652,6 +698,7 @@ object TVList {
TV( TV(
46, 46,
"北京卫视", "北京卫视",
"北京卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221225728/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221225728/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226222/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226222/index.m3u8"
@@ -668,6 +715,7 @@ object TVList {
TV( TV(
47, 47,
"黑龙江卫视", "黑龙江卫视",
"黑龙江卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226327/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226327/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226215/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226215/index.m3u8"
@@ -684,6 +732,7 @@ object TVList {
TV( TV(
48, 48,
"浙江卫视", "浙江卫视",
"浙江卫视",
listOf( listOf(
"http://hw-m-l.cztv.com/channels/lantian/channel01/1080p.m3u8", "http://hw-m-l.cztv.com/channels/lantian/channel01/1080p.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226199/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226199/index.m3u8"
@@ -700,6 +749,7 @@ object TVList {
TV( TV(
49, 49,
"安徽卫视", "安徽卫视",
"安徽卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226391/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226391/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226203/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226203/index.m3u8"
@@ -716,6 +766,7 @@ object TVList {
TV( TV(
50, 50,
"深圳卫视", "深圳卫视",
"深圳卫视",
listOf( listOf(
"http://39.134.24.166/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226205/index.m3u8", "http://39.134.24.166/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226205/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226205/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226205/index.m3u8"
@@ -732,6 +783,7 @@ object TVList {
TV( TV(
51, 51,
"四川卫视", "四川卫视",
"四川卫视",
listOf( listOf(
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225768/index.m3u8", "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225768/index.m3u8",
"http://39.134.24.166/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225768/index.m3u8" "http://39.134.24.166/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225768/index.m3u8"
@@ -748,6 +800,7 @@ object TVList {
TV( TV(
52, 52,
"东南卫视", "东南卫视",
"福建东南卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226341/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226341/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225766/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225766/index.m3u8"
@@ -764,6 +817,7 @@ object TVList {
TV( TV(
53, 53,
"海南卫视", "海南卫视",
"海南卫视",
listOf( listOf(
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226465/index.m3u8", "http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226465/index.m3u8",
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225769/index.m3u8" "http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225769/index.m3u8"
@@ -780,6 +834,7 @@ object TVList {
TV( TV(
54, 54,
"天津卫视", "天津卫视",
"天津卫视",
listOf(), listOf(),
0, 0,
"地方频道", "地方频道",
@@ -793,6 +848,7 @@ object TVList {
TV( TV(
55, 55,
"新疆卫视", "新疆卫视",
"新疆卫视",
listOf(), listOf(),
0, 0,
"地方频道", "地方频道",
@@ -808,12 +864,13 @@ object TVList {
TV( TV(
56, 56,
"CGTN", "CGTN",
"CGTN",
listOf("http://live.cgtn.com/1000/prog_index.m3u8"), listOf("http://live.cgtn.com/1000/prog_index.m3u8"),
0, 0,
"国际频道", "国际频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/a72dff758ca1c17cd0ecc8cedc11b893d208f409d5e6302faa0e9d298848abc3.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/a72dff758ca1c17cd0ecc8cedc11b893d208f409d5e6302faa0e9d298848abc3.png?imageMogr2/format/webp",
"600014550", "600014550",
"2001656803", "2022575001",
"600014550", "600014550",
false, false,
mustToken = false mustToken = false
@@ -821,12 +878,13 @@ object TVList {
TV( TV(
57, 57,
"CGTN 法语频道", "CGTN 法语频道",
"CGTN法语频道",
listOf("https://livefr.cgtn.com/1000f/prog_index.m3u8"), listOf("https://livefr.cgtn.com/1000f/prog_index.m3u8"),
0, 0,
"国际频道", "国际频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/a8d0046a47433d952bf6ed17062deb8bd2184ba9aec0f7781df6bf9487a3ffcf.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/a8d0046a47433d952bf6ed17062deb8bd2184ba9aec0f7781df6bf9487a3ffcf.png?imageMogr2/format/webp",
"600084704", "600084704",
"2010153503", "2022574901",
"600084704", "600084704",
false, false,
mustToken = false mustToken = false
@@ -834,12 +892,13 @@ object TVList {
TV( TV(
58, 58,
"CGTN 俄语频道", "CGTN 俄语频道",
"CGTN俄语频道",
listOf("http://liveru.cgtn.com/1000r/prog_index.m3u8"), listOf("http://liveru.cgtn.com/1000r/prog_index.m3u8"),
0, 0,
"国际频道", "国际频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/bf0a820893cbaf20dd0333e27042e1ef9c8806e5b602b6a8c95af399db0bc77a.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/bf0a820893cbaf20dd0333e27042e1ef9c8806e5b602b6a8c95af399db0bc77a.png?imageMogr2/format/webp",
"600084758", "600084758",
"2010152603", "2022574801",
"600084758", "600084758",
false, false,
mustToken = false mustToken = false
@@ -847,12 +906,13 @@ object TVList {
TV( TV(
59, 59,
"CGTN 阿拉伯语频道", "CGTN 阿拉伯语频道",
"CGTN阿拉伯语频道",
listOf("http://livear.cgtn.com/1000a/prog_index.m3u8"), listOf("http://livear.cgtn.com/1000a/prog_index.m3u8"),
0, 0,
"国际频道", "国际频道",
"https://resources.yangshipin.cn/assets/oms/image/202306/2e44e2aa3e7a1cedf07fd0ae59fe69e86a60a2632660a006e3e9e7397b2d107e.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202306/2e44e2aa3e7a1cedf07fd0ae59fe69e86a60a2632660a006e3e9e7397b2d107e.png?imageMogr2/format/webp",
"600084782", "600084782",
"2010155203", "2022574601",
"600084782", "600084782",
false, false,
mustToken = false mustToken = false
@@ -860,6 +920,7 @@ object TVList {
TV( TV(
60, 60,
"CGTN 西班牙语频道", "CGTN 西班牙语频道",
"CGTN西班牙语频道",
listOf( listOf(
"http://livees.cgtn.com/500e/prog_index.m3u8", "http://livees.cgtn.com/500e/prog_index.m3u8",
"http://livees.cgtn.com/1000e/prog_index.m3u8" "http://livees.cgtn.com/1000e/prog_index.m3u8"
@@ -868,7 +929,7 @@ object TVList {
"国际频道", "国际频道",
"https://resources.yangshipin.cn/assets/oms/image/202309/7c337e3dbe64402ec7e4678a619a4a6d95144e42f35161181ff78e143b7cf67a.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202309/7c337e3dbe64402ec7e4678a619a4a6d95144e42f35161181ff78e143b7cf67a.png?imageMogr2/format/webp",
"600084744", "600084744",
"2010152503", "2022571701",
"600084744", "600084744",
false, false,
mustToken = false mustToken = false
@@ -876,12 +937,13 @@ object TVList {
TV( TV(
61, 61,
"CGTN 纪录频道", "CGTN 纪录频道",
"CGTN外语纪录频道",
listOf("https://livedoc.cgtn.com/500d/prog_index.m3u8"), listOf("https://livedoc.cgtn.com/500d/prog_index.m3u8"),
0, 0,
"国际频道", "国际频道",
"https://resources.yangshipin.cn/assets/oms/image/202309/74d3ac436a7e374879578de1d87a941fbf566d39d5632b027c5097891ed32bd5.png?imageMogr2/format/webp", "https://resources.yangshipin.cn/assets/oms/image/202309/74d3ac436a7e374879578de1d87a941fbf566d39d5632b027c5097891ed32bd5.png?imageMogr2/format/webp",
"600084781", "600084781",
"2010155403", "2022574701",
"600084781", "600084781",
false, false,
mustToken = false mustToken = false
@@ -13,6 +13,7 @@ data class LiveInfo(
) )
data class LiveInfoData( data class LiveInfoData(
val extended_param: String,
val chanll: String, val chanll: String,
val playurl: String, val playurl: String,
val errinfo: String, val errinfo: String,
@@ -127,7 +127,6 @@ class YSP(var context: Context) {
private fun getSignature(): String { private fun getSignature(): String {
val e = val e =
"adjust=${adjust}&appVer=${appVer}&app_version=$appVersion&cKey=$cKey&channel=$channel&cmd=$cmd&cnlid=$cnlid&defn=${defn}&devid=${devid}&dtype=${dtype}&encryptVer=${encryptVer}&guid=${guid}&livepid=${livepid}&otype=${otype}&platform=${platform}&rand_str=${randStr}&sphttps=${sphttps}&stream=${stream}".toByteArray() "adjust=${adjust}&appVer=${appVer}&app_version=$appVersion&cKey=$cKey&channel=$channel&cmd=$cmd&cnlid=$cnlid&defn=${defn}&devid=${devid}&dtype=${dtype}&encryptVer=${encryptVer}&guid=${guid}&livepid=${livepid}&otype=${otype}&platform=${platform}&rand_str=${randStr}&sphttps=${sphttps}&stream=${stream}".toByteArray()
val hashedData = encryptor?.hash(e) ?: return "" val hashedData = encryptor?.hash(e) ?: return ""
return hashedData.let { it -> it.joinToString("") { "%02x".format(it) } } return hashedData.let { it -> it.joinToString("") { "%02x".format(it) } }
} }