mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
fix ysp
This commit is contained in:
@@ -62,7 +62,6 @@ class MainFragment : Fragment(), CardAdapter.ItemListener {
|
||||
val content = binding.content
|
||||
|
||||
var idx: Long = 0
|
||||
context?.let { TVList.init(it) }
|
||||
for ((k, v) in TVList.list) {
|
||||
val itemBinding: RowBinding =
|
||||
RowBinding.inflate(layoutInflater, content, false)
|
||||
|
||||
@@ -41,7 +41,7 @@ class Request {
|
||||
|
||||
private val regex = Regex("""des_key = "([^"]+).+var des_iv = "([^"]+)""")
|
||||
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(
|
||||
"CCTV4K" to "CCTV4K 超高清",
|
||||
@@ -118,6 +118,7 @@ class Request {
|
||||
override fun onResponse(call: Call<LiveInfo>, response: Response<LiveInfo>) {
|
||||
if (response.isSuccessful) {
|
||||
val liveInfo = response.body()
|
||||
|
||||
if (liveInfo?.data?.playurl != null) {
|
||||
val chanll = liveInfo.data.chanll
|
||||
val decodedBytes = Base64.decode(
|
||||
@@ -133,8 +134,8 @@ class Request {
|
||||
val url = liveInfo.data.playurl + "&revoi=" + encryptTripleDES(
|
||||
keyBytes + byteArrayOf(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
ivBytes
|
||||
).uppercase()
|
||||
// Log.d(TAG, "$title url $url")
|
||||
).uppercase() + liveInfo.data.extended_param
|
||||
Log.d(TAG, "$title url $url")
|
||||
tvModel.addVideoUrl(url)
|
||||
tvModel.allReady()
|
||||
tvModel.retryTimes = 0
|
||||
@@ -202,7 +203,7 @@ class Request {
|
||||
}
|
||||
|
||||
override fun onFailure(call: Call<LiveInfo>, t: Throwable) {
|
||||
Log.e(TAG, "$title request error")
|
||||
Log.e(TAG, "$title request error $t")
|
||||
if (tvModel.retryTimes < tvModel.retryMaxTimes) {
|
||||
tvModel.retryTimes++
|
||||
if (tvModel.getTV().needToken) {
|
||||
@@ -354,29 +355,21 @@ class Request {
|
||||
) {
|
||||
if (response.isSuccessful) {
|
||||
val body = response.body()
|
||||
|
||||
if (body?.data?.feedModuleListCount == 1) {
|
||||
for (item in body.data?.feedModuleListList!![0]?.dataTvChannelListList!!) {
|
||||
if (item.isVip && !item.isLimitedFree) {
|
||||
continue
|
||||
}
|
||||
Log.i(
|
||||
Log.d(
|
||||
TAG,
|
||||
"${item.channelName},${item.pid},${item.streamId}"
|
||||
)
|
||||
var channelType = "央视频道"
|
||||
if (item?.channelType === "weishi") {
|
||||
channelType = "地方频道"
|
||||
}
|
||||
if (!mapping.containsKey(item.channelName)) {
|
||||
continue
|
||||
}
|
||||
val tv =
|
||||
TVList.list[channelType]?.find { it.title == mapping[item.channelName] }
|
||||
if (tv != null) {
|
||||
tv.logo = item.tvLogo
|
||||
tv.pid = item.pid
|
||||
tv.sid = item.streamId
|
||||
|
||||
for ((_, v) in TVList.list) {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.io.Serializable
|
||||
data class TV(
|
||||
var id: Int = 0,
|
||||
var title: String,
|
||||
var alias: String = "",
|
||||
var videoUrl: List<String>,
|
||||
var videoIndex: Int = 0,
|
||||
var channel: String = "",
|
||||
@@ -12,10 +13,10 @@ data class TV(
|
||||
var pid: String = "",
|
||||
var sid: String = "",
|
||||
var programId: String = "",
|
||||
var needToken:Boolean=false,
|
||||
var mustToken:Boolean=false,
|
||||
var needToken: Boolean = false,
|
||||
var mustToken: Boolean = false,
|
||||
|
||||
) : Serializable {
|
||||
) : Serializable {
|
||||
|
||||
override fun toString(): String {
|
||||
return "TV{" +
|
||||
|
||||
@@ -1,54 +1,946 @@
|
||||
package com.lizongying.mytv
|
||||
|
||||
import android.content.Context
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.reflect.TypeToken
|
||||
import java.io.File
|
||||
|
||||
object TVList {
|
||||
lateinit var list: Map<String, List<TV>>
|
||||
private val channels = "channels.json"
|
||||
|
||||
fun init(context: Context) {
|
||||
if (::list.isInitialized) {
|
||||
return
|
||||
}
|
||||
synchronized(this) {
|
||||
if (::list.isInitialized) {
|
||||
return
|
||||
}
|
||||
list = setupTV(context)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private fun setupTV(context: Context): Map<String, List<TV>> {
|
||||
val map: MutableMap<String, MutableList<TV>> = mutableMapOf()
|
||||
val appDirectory = Utils.getAppDirectory(context)
|
||||
|
||||
//检查当前目录下是否存在channels.json
|
||||
val file = File(appDirectory, channels)
|
||||
if (!file.exists()) {
|
||||
//不存在则从assets中拷贝
|
||||
file.createNewFile()
|
||||
context.resources.openRawResource(R.raw.channels).use { input ->
|
||||
file.outputStream().use { output ->
|
||||
input.copyTo(output)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//读取channels.json,并转换为Map<String,LIst<TV>>
|
||||
val json = file.readText()
|
||||
//防止类型擦除
|
||||
val type = object : TypeToken<Array<TV>>() {}.type
|
||||
Gson().fromJson<Array<TV>>(json, type)?.forEach {
|
||||
if (map.containsKey(it.channel)) {
|
||||
map[it.channel]?.add(it)
|
||||
} else {
|
||||
map[it.channel] = mutableListOf(it)
|
||||
}
|
||||
}
|
||||
return map
|
||||
}
|
||||
var list = mapOf(
|
||||
"央视频道" to listOf(
|
||||
TV(
|
||||
0,
|
||||
"CCTV1 综合",
|
||||
"CCTV1",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226231/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/d57905b93540bd15f0c48230dbbbff7ee0d645ff539e38866e2d15c8b9f7dfcd.png?imageMogr2/format/webp",
|
||||
"600001859",
|
||||
"2022576801",
|
||||
"600001859",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
1,
|
||||
"CCTV2 财经",
|
||||
"CCTV2",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226195/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/20115388de0207131af17eac86c33049b95d69eaff064e55653a1b941810a006.png?imageMogr2/format/webp",
|
||||
"600001800",
|
||||
"2022576701",
|
||||
"600001800",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
2,
|
||||
"CCTV3 综艺",
|
||||
"CCTV3",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226397/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/7b7a65c712450da3deb6ca66fbacf4f9aee00d3f20bd80eafb5ada01ec63eb3a.png?imageMogr2/format/webp",
|
||||
"600001801",
|
||||
"2022576501",
|
||||
"600001801",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
3,
|
||||
"CCTV4 中文国际",
|
||||
"CCTV4",
|
||||
listOf(
|
||||
"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"
|
||||
),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/f357e58fdbcc076a3d65e1f958c942b2e14f14342c60736ceed98b092d35356a.png?imageMogr2/format/webp",
|
||||
"600001814",
|
||||
"2022576601",
|
||||
"600001814",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
4,
|
||||
"CCTV5 体育",
|
||||
"CCTV5",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226395/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/0a6a7138952675983a3d854df7688557b286d59aa06166edae51506f9204d655.png?imageMogr2/format/webp",
|
||||
"600001818",
|
||||
"2022576401",
|
||||
"600001818",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
5,
|
||||
"CCTV6 电影",
|
||||
"CCTV6",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226393/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/741515efda91f03f455df8a7da4ee11fa9329139c276435cf0a9e2af398d5bf2.png?imageMogr2/format/webp",
|
||||
"600001802",
|
||||
"2022574301",
|
||||
"600001802",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
6,
|
||||
"CCTV7 国防军事",
|
||||
"CCTV7",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226192/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/b29af94e295ebdf646cefb68122c429b9cd921f498ca20d2d8070252536f9ff9.png?imageMogr2/format/webp",
|
||||
"600004092",
|
||||
"2022576201",
|
||||
"600004092",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
7,
|
||||
"CCTV8 电视剧",
|
||||
"CCTV8",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226391/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/ad51de94426a0ba039e6dd6a8534ea98ecc813a6176bde87b4f18cc34d6d7590.png?imageMogr2/format/webp",
|
||||
"600001803",
|
||||
"2022576101",
|
||||
"600001803",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
8,
|
||||
"CCTV9 记录",
|
||||
"CCTV9",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226197/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/2ed1b4deeca179d5db806bb941790f82eb92a1b7299c1c38fe027f95a5caee5e.png?imageMogr2/format/webp",
|
||||
"600004078",
|
||||
"2022576001",
|
||||
"600004078",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
9,
|
||||
"CCTV10 科教",
|
||||
"CCTV10",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226189/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/aa6157ec65188cd41826e5a2f088c3d6d153205f5f6428258d12c59999e221aa.png?imageMogr2/format/webp",
|
||||
"600001805",
|
||||
"2022573001",
|
||||
"600001805",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
10,
|
||||
"CCTV11 戏曲",
|
||||
"CCTV11",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226240/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/ed12ed7c7a1034dae4350011fe039284c5d5a836506b28c9e32e3c75299625c0.png?imageMogr2/format/webp",
|
||||
"600001806",
|
||||
"2022575901",
|
||||
"600001806",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
11,
|
||||
"CCTV12 社会与法",
|
||||
"CCTV12",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226190/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/484083cffaa40df7e659565e8cb4d1cc740158a185512114167aa21fa0c59240.png?imageMogr2/format/webp",
|
||||
"600001807",
|
||||
"2022575801",
|
||||
"600001807",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
12,
|
||||
"CCTV13 新闻",
|
||||
"CCTV13",
|
||||
listOf(
|
||||
"https://live-play.cctvnews.cctv.com/cctv/merge_cctv13.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226233/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/266da7b43c03e2312186b4a999e0f060e8f15b10d2cc2c9aa32171819254cf1a.png?imageMogr2/format/webp",
|
||||
"600001811",
|
||||
"2022575701",
|
||||
"600001811",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
13,
|
||||
"CCTV14 少儿",
|
||||
"CCTV14",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226193/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/af6b603896938dc346fbb16abfc63c12cba54b0ec9d18770a15d347d115f12d5.png?imageMogr2/format/webp",
|
||||
"600001809",
|
||||
"2022575601",
|
||||
"600001809",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
14,
|
||||
"CCTV15 音乐",
|
||||
"CCTV15",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225785/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/2ceee92188ef684efe0d8b90839c4f3ad450d179dc64d59beff417059453af47.png?imageMogr2/format/webp",
|
||||
"600001815",
|
||||
"2022575501",
|
||||
"600001815",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
15,
|
||||
"CCTV16 奥林匹克",
|
||||
"CCTV16-HD",
|
||||
listOf(
|
||||
"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"
|
||||
),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/53793fa7bacd3a93ff6dc5d2758418985e1f952a316c335d663b572d8bdcd74d.png?imageMogr2/format/webp",
|
||||
"600098637",
|
||||
"2022575401",
|
||||
"600098637",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
16,
|
||||
"CCTV17 农业农村",
|
||||
"CCTV17",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226198/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/ddef563072f8bad2bea5b9e52674cb7b4ed50efb20c26e61994dfbdf05c1e3c0.png?imageMogr2/format/webp",
|
||||
"600001810",
|
||||
"2022575301",
|
||||
"600001810",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
17,
|
||||
"CCTV5+ 体育赛事",
|
||||
"CCTV5+",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226221/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/649ad76a90bfef55b05db9fe52e006487280f619089099d5dc971e387fc6eff0.png?imageMogr2/format/webp",
|
||||
"600001817",
|
||||
"2022576301",
|
||||
"600001817",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
18,
|
||||
"CCTV4K 超高清",
|
||||
"CCTV4K",
|
||||
listOf(),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/3e9d06fd7244d950df5838750f1c6ac3456e172b51caca2c16d2282125b111e8.png?imageMogr2/format/webp",
|
||||
"600002264",
|
||||
"2022575201",
|
||||
"600002264",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
19,
|
||||
"CCTV8K 超高清",
|
||||
"CCTV8K",
|
||||
listOf(),
|
||||
0,
|
||||
"央视频道",
|
||||
"",
|
||||
"600156816",
|
||||
"2020603421",
|
||||
"",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
20,
|
||||
"风云剧场",
|
||||
"CCTV风云剧场频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226950/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/4d549e53e6d0f632d5a633d1945280797b153e588f919221a07faa869812cc89.png?imageMogr2/format/webp",
|
||||
"600099658",
|
||||
"2012513603",
|
||||
"600099658",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
21,
|
||||
"第一剧场",
|
||||
"CCTV第一剧场频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226959/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/a556bd7d93ce65e18f243a8892b5604f4faa994a4897315914216a710a706208.png?imageMogr2/format/webp",
|
||||
"600099655",
|
||||
"2012514403",
|
||||
"600099655",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
22,
|
||||
"怀旧剧场",
|
||||
"CCTV怀旧剧场频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226972/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/5661bd04fecdb6e899f801147a22ab5d3a475bf2b62e30aec2c0023190ebc9b1.png?imageMogr2/format/webp",
|
||||
"600099620",
|
||||
"2012511203",
|
||||
"600099620",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
23,
|
||||
"世界地理",
|
||||
"CCTV世界地理频道",
|
||||
listOf(),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/bb3c6c9e145d698137f5bb64a582021a01b51344b929003630eb769ea65832a9.png?imageMogr2/format/webp",
|
||||
"600099637",
|
||||
"2012513303",
|
||||
"600099637",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
24,
|
||||
"风云音乐",
|
||||
"CCTV风云音乐频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226953/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/bbf1d024c5228b8dd128b0e3cb1717d173fab4ee84c3a4c8a57b1a215362ca3b.png?imageMogr2/format/webp",
|
||||
"600099660",
|
||||
"2012514103",
|
||||
"600099660",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
25,
|
||||
"兵器科技",
|
||||
"CCTV兵器科技频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226975/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/4c6b6a6d3839889f34d33db3c2f80233b26b74d3489b393487635f8704e70796.png?imageMogr2/format/webp",
|
||||
"600099649",
|
||||
"2012513403",
|
||||
"600099649",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
26,
|
||||
"风云足球",
|
||||
"CCTV风云足球频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226984/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/cd1e2bb52b06a991de168733e5ff0f1d85adc8042d40c8f393f723543e5dd08a.png?imageMogr2/format/webp",
|
||||
"600099636",
|
||||
"2012514203",
|
||||
"600099636",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
27,
|
||||
"高尔夫网球",
|
||||
"CCTV高尔夫·网球频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226978/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/cdd1b31ede7a5ad049ed53d9a072422f829e72dd062ed2c19e077fdd01699071.png?imageMogr2/format/webp",
|
||||
"600099659",
|
||||
"2012512503",
|
||||
"600099659",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
28,
|
||||
"女性时尚",
|
||||
"CCTV女性时尚频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226969/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/fa28955ce8b2539d728bf4c6a13a46ff57ad76eae46627f7bcfb1ed8a613d3fc.png?imageMogr2/format/webp",
|
||||
"600099650",
|
||||
"2012513903",
|
||||
"600099650",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
29,
|
||||
"央视文化精品",
|
||||
"CCTV央视文化精品频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226981/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/14ac5ce40482cacd3d4b37435222bfe86af2b452a2f04ecbfc1d13d76edd7c57.png?imageMogr2/format/webp",
|
||||
"600099653",
|
||||
"2012513803",
|
||||
"600099653",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
30,
|
||||
"央视台球",
|
||||
"CCTV央视台球频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226956/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/10e14a92478011aa6c3c8562e62127f3b1908e29fcd78e4b2b24b9e6d3ec2fbc.png?imageMogr2/format/webp",
|
||||
"600099652",
|
||||
"2012513703",
|
||||
"600099652",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
31,
|
||||
"电视指南",
|
||||
"CCTV电视指南频道",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226987/index.m3u8"),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/244d72c0eb1615ed7d51c2f5db5a67f306aa3f58c05bc2d34de3aa7e956dc8c9.png?imageMogr2/format/webp",
|
||||
"600099656",
|
||||
"2012514003",
|
||||
"600099656",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
TV(
|
||||
32,
|
||||
"卫生健康",
|
||||
"CCTV卫生健康频道",
|
||||
listOf(),
|
||||
0,
|
||||
"央视频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/54a6863656fdfd8f803be193ddf22441c5000a108833889816fd2d8911715ce8.png?imageMogr2/format/webp",
|
||||
"600099651",
|
||||
"2012513503",
|
||||
"600099651",
|
||||
true,
|
||||
mustToken = true
|
||||
),
|
||||
),
|
||||
"地方频道" to listOf(
|
||||
TV(
|
||||
33,
|
||||
"东方卫视",
|
||||
"东方卫视",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226217/index.m3u8"),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/9bd372ca292a82ce3aa08772b07efc4af1f85c21d1f268ea33440c49e9a0a488.png?imageMogr2/format/webp",
|
||||
"600002483",
|
||||
"2000292403",
|
||||
"600002483",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
34,
|
||||
"湖南卫视",
|
||||
"湖南卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226307/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226211/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/4120e89d3079d08aa17d382f69a2308ec70839b278367763c34a34666c75cb88.png?imageMogr2/format/webp",
|
||||
"600002475",
|
||||
"2000296203",
|
||||
"600002475",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
35,
|
||||
"湖北卫视",
|
||||
"湖北卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226477/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226194/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/7a6be5a2bb1dc53a945c016ff1f525dc4a84c51db371c15c89aa55404b0ba784.png?imageMogr2/format/webp",
|
||||
"600002508",
|
||||
"2000294503",
|
||||
"600002508",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
36,
|
||||
"辽宁卫视",
|
||||
"辽宁卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226546/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226201/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/ac4ed6058a87c101ae7147ebc38905d0cae047fb73fd277ee5049b84f52bda36.png?imageMogr2/format/webp",
|
||||
"600002505",
|
||||
"2000281303",
|
||||
"600002505",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
37,
|
||||
"江苏卫视",
|
||||
"江苏卫视",
|
||||
listOf(
|
||||
"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"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/380ad685c0c1d5b2c902246b8d2df6d3f9b45e2837abcfe493075bbded597a31.png?imageMogr2/format/webp",
|
||||
"600002521",
|
||||
"2000295603",
|
||||
"600002521",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
38,
|
||||
"江西卫视",
|
||||
"江西卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226344/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225764/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/3c760d0d00463855890e8a1864ea4a6b6dd66b90c29b4ac714a4b17c16519871.png?imageMogr2/format/webp",
|
||||
"600002503",
|
||||
"2000294103",
|
||||
"600002503",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
39,
|
||||
"山东卫视",
|
||||
"山东卫视",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226209/index.m3u8"),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/22d403f07a7cf5410b3ad3ddb65a11aa229a32475fac213f5344c9f0ec330ca1.png?imageMogr2/format/webp",
|
||||
"600002513",
|
||||
"2000294803",
|
||||
"600002513",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
40,
|
||||
"广东卫视",
|
||||
"广东卫视",
|
||||
listOf("http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226216/index.m3u8"),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/28886880a4dc0f06fb7e0a528a1def0591d61a65870e29176ede0cc92033bbfd.png?imageMogr2/format/webp",
|
||||
"600002485",
|
||||
"2000292703",
|
||||
"600002485",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
41,
|
||||
"广西卫视",
|
||||
"广西卫视",
|
||||
listOf(
|
||||
"http://live.gxrb.com.cn/tv/gxtvlive03/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225770/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/54b7e97cb816bb223fe05f3fc44da2c7820eb66e8550c19d23100f2c414ecc38.png?imageMogr2/format/webp",
|
||||
"600002509",
|
||||
"2000294203",
|
||||
"600002509",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
42,
|
||||
"重庆卫视",
|
||||
"重庆卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226409/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226202/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/657651f411de2673d1770d9a78b44c1265704f7468cc41d4be7f51d630768494.png?imageMogr2/format/webp",
|
||||
"600002531",
|
||||
"2000297803",
|
||||
"600002531",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
43,
|
||||
"河南卫视",
|
||||
"河南卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226480/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225767/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/74925962148a6d31c85808b6cd4e444c2a54bab393d2c5fc85e960b50e22fa86.png?imageMogr2/format/webp",
|
||||
"600002525",
|
||||
"2000296103",
|
||||
"600002525",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
44,
|
||||
"河北卫视",
|
||||
"河北卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226406/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225750/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/d545becdc81c60197b08c7f47380705e4665ed3fe55efc8b855e486f6e655378.png?imageMogr2/format/webp",
|
||||
"600002493",
|
||||
"2000293403",
|
||||
"600002493",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
45,
|
||||
"贵州卫视",
|
||||
"贵州卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226474/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225793/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/4eb45f4781d33d872af027dc01c941559aab55667dd99cc5c22bef7037807b13.png?imageMogr2/format/webp",
|
||||
"600002490",
|
||||
"2000293303",
|
||||
"600002490",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
46,
|
||||
"北京卫视",
|
||||
"北京卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221225728/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226222/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/f4f23633c578beea49a3841d88d3490100f029ee349059fa532869db889872c5.png?imageMogr2/format/webp",
|
||||
"600002309",
|
||||
"2000272103",
|
||||
"600002309",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
47,
|
||||
"黑龙江卫视",
|
||||
"黑龙江卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226327/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226215/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/d8273ae9be698ce2db21f5b886ecac95a73429593f93713c60ed8c12c38bf0d3.png?imageMogr2/format/webp",
|
||||
"600002498",
|
||||
"2000293903",
|
||||
"600002498",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
48,
|
||||
"浙江卫视",
|
||||
"浙江卫视",
|
||||
listOf(
|
||||
"http://hw-m-l.cztv.com/channels/lantian/channel01/1080p.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226199/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/a66c836bd98ba3e41a2e9a570d4b9c50dedc6839e9de333e2e78212ad505f37e.png?imageMogr2/format/webp",
|
||||
"600002520",
|
||||
"2000295503",
|
||||
"600002520",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
49,
|
||||
"安徽卫视",
|
||||
"安徽卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226391/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226203/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/f35fa04b51b1ee4984b03578b65403570868ebca03c6c01e11b097f999a58d9b.png?imageMogr2/format/webp",
|
||||
"600002532",
|
||||
"2000298003",
|
||||
"600002532",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
50,
|
||||
"深圳卫视",
|
||||
"深圳卫视",
|
||||
listOf(
|
||||
"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"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/d59fec04c902e3581c617136d02d4b9b8c4cbe64272781ddd3525e80c823edb7.png?imageMogr2/format/webp",
|
||||
"600002481",
|
||||
"2000292203",
|
||||
"600002481",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
51,
|
||||
"四川卫视",
|
||||
"四川卫视",
|
||||
listOf(
|
||||
"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"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/3276a414ae0eaa0f116f2045cd913367967d0c7c1e978e8621ac3879436c6ed7.png?imageMogr2/format/webp",
|
||||
"600002516",
|
||||
"2000295003",
|
||||
"600002516",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
52,
|
||||
"东南卫视",
|
||||
"福建东南卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226341/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225766/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/3208fe6564a293c21b711333fb3edb05bb5b406cff840573c9a8d839680a1579.png?imageMogr2/format/webp",
|
||||
"600002484",
|
||||
"2000292503",
|
||||
"600002484",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
53,
|
||||
"海南卫视",
|
||||
"海南卫视",
|
||||
listOf(
|
||||
"http://ottrrs.hl.chinamobile.com/PLTV/88888888/224/3221226465/index.m3u8",
|
||||
"http://dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221225769/index.m3u8"
|
||||
),
|
||||
0,
|
||||
"地方频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/6e060391fde0469801fc3d84dbf204b4f8d650d251f17d7595a6964c0bb99e81.png?imageMogr2/format/webp",
|
||||
"600002506",
|
||||
"2000291503",
|
||||
"600002506",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
54,
|
||||
"天津卫视",
|
||||
"天津卫视",
|
||||
listOf(),
|
||||
0,
|
||||
"地方频道",
|
||||
"",
|
||||
"600152137",
|
||||
"2019927003",
|
||||
"",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
55,
|
||||
"新疆卫视",
|
||||
"新疆卫视",
|
||||
listOf(),
|
||||
0,
|
||||
"地方频道",
|
||||
"",
|
||||
"600152138",
|
||||
"2019927403",
|
||||
"",
|
||||
true,
|
||||
mustToken = false
|
||||
),
|
||||
),
|
||||
"国际频道" to listOf(
|
||||
TV(
|
||||
56,
|
||||
"CGTN",
|
||||
"CGTN",
|
||||
listOf("http://live.cgtn.com/1000/prog_index.m3u8"),
|
||||
0,
|
||||
"国际频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/a72dff758ca1c17cd0ecc8cedc11b893d208f409d5e6302faa0e9d298848abc3.png?imageMogr2/format/webp",
|
||||
"600014550",
|
||||
"2022575001",
|
||||
"600014550",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
57,
|
||||
"CGTN 法语频道",
|
||||
"CGTN法语频道",
|
||||
listOf("https://livefr.cgtn.com/1000f/prog_index.m3u8"),
|
||||
0,
|
||||
"国际频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/a8d0046a47433d952bf6ed17062deb8bd2184ba9aec0f7781df6bf9487a3ffcf.png?imageMogr2/format/webp",
|
||||
"600084704",
|
||||
"2022574901",
|
||||
"600084704",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
58,
|
||||
"CGTN 俄语频道",
|
||||
"CGTN俄语频道",
|
||||
listOf("http://liveru.cgtn.com/1000r/prog_index.m3u8"),
|
||||
0,
|
||||
"国际频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/bf0a820893cbaf20dd0333e27042e1ef9c8806e5b602b6a8c95af399db0bc77a.png?imageMogr2/format/webp",
|
||||
"600084758",
|
||||
"2022574801",
|
||||
"600084758",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
59,
|
||||
"CGTN 阿拉伯语频道",
|
||||
"CGTN阿拉伯语频道",
|
||||
listOf("http://livear.cgtn.com/1000a/prog_index.m3u8"),
|
||||
0,
|
||||
"国际频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202306/2e44e2aa3e7a1cedf07fd0ae59fe69e86a60a2632660a006e3e9e7397b2d107e.png?imageMogr2/format/webp",
|
||||
"600084782",
|
||||
"2022574601",
|
||||
"600084782",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
60,
|
||||
"CGTN 西班牙语频道",
|
||||
"CGTN西班牙语频道",
|
||||
listOf(
|
||||
"http://livees.cgtn.com/500e/prog_index.m3u8",
|
||||
"http://livees.cgtn.com/1000e/prog_index.m3u8"
|
||||
),
|
||||
0,
|
||||
"国际频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202309/7c337e3dbe64402ec7e4678a619a4a6d95144e42f35161181ff78e143b7cf67a.png?imageMogr2/format/webp",
|
||||
"600084744",
|
||||
"2022571701",
|
||||
"600084744",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
TV(
|
||||
61,
|
||||
"CGTN 纪录频道",
|
||||
"CGTN外语纪录频道",
|
||||
listOf("https://livedoc.cgtn.com/500d/prog_index.m3u8"),
|
||||
0,
|
||||
"国际频道",
|
||||
"https://resources.yangshipin.cn/assets/oms/image/202309/74d3ac436a7e374879578de1d87a941fbf566d39d5632b027c5097891ed32bd5.png?imageMogr2/format/webp",
|
||||
"600084781",
|
||||
"2022574701",
|
||||
"600084781",
|
||||
false,
|
||||
mustToken = false
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -13,6 +13,7 @@ data class LiveInfo(
|
||||
)
|
||||
|
||||
data class LiveInfoData(
|
||||
val extended_param: String,
|
||||
val chanll: String,
|
||||
val playurl: String,
|
||||
val errinfo: String,
|
||||
|
||||
@@ -127,7 +127,6 @@ class YSP(var context: Context) {
|
||||
private fun getSignature(): String {
|
||||
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()
|
||||
|
||||
val hashedData = encryptor?.hash(e) ?: return ""
|
||||
return hashedData.let { it -> it.joinToString("") { "%02x".format(it) } }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user