Skip to content

Commit

Permalink
cetv1
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Mar 8, 2024
1 parent e2145f8 commit 558fe7e
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ body:
label: my-ty 版本
description: 请选择正在使用的版本
options:
- 最新稳定版
- 最新 CI 版
- 通用版
- 专用版
validations:
required: true
- type: textarea
Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@

## 更新日志

### v1.6.4(通用)

* 增加CETV1
* 增加凤凰卫视
* 默认关闭开机启动

### v1.6.3(安卓5及以上专用)

* 增加CETV1
* 默认关闭开机启动

### v1.6.2(通用)

* 修复按键无效的问题
Expand Down Expand Up @@ -200,16 +211,14 @@ adb install my-tv.apk

* 音量不同
* 大湾区卫视、广东4k超高清、广东珠江、三沙卫视
* CETV教育频道
* CHC高清三个电影频道
* 地方频道
* 收藏夹
* 自定义源
* 凤凰卫视、凤凰资讯台
* 海外
* 1.5.0 无法安装,1.5.1 可以安装
* 节目增加预告
* 频道列表优化
* 自动更新

## 赞赏

Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<provider
android:name=".InitializerProvider"
android:authorities="${applicationId}.InitializerProvider"
android:exported="false"
android:initOrder="900" />
android:exported="false"/>
</application>
</manifest>
4 changes: 4 additions & 0 deletions app/src/main/java/com/lizongying/mytv/InfoFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class InfoFragment : Fragment() {
.load(R.drawable.bingtuan)
.into(binding.infoLogo)

"CETV1" -> Glide.with(this)
.load(R.drawable.cetv1)
.into(binding.infoLogo)

else -> Glide.with(this)
.load(tvViewModel.logo.value)
.into(binding.infoLogo)
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/com/lizongying/mytv/Request.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class Request {
handler.post(tokenRunnable)
}

fun onDestroy() {
handler.removeCallbacks(tokenRunnable)
}

fun initYSP(context: Context) {
ysp = YSP(context)
}
Expand Down
32 changes: 23 additions & 9 deletions app/src/main/java/com/lizongying/mytv/TVList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,24 @@ object TVList {
true,
mustToken = false
),
TV(
57,
"CETV1",
"CETV1",
listOf(),
0,
"地方",
"",
"600171827",
"2022823801",
"",
true,
mustToken = false
),
),
"港澳台" to listOf(
TV(
57,
58,
"凤凰卫视资讯台",
"",
listOf(),
Expand All @@ -890,7 +904,7 @@ object TVList {
mustToken = false
),
TV(
58,
59,
"凤凰卫视中文台",
"",
listOf(),
Expand All @@ -904,7 +918,7 @@ object TVList {
mustToken = false
),
TV(
59,
60,
"凤凰卫视香港台",
"",
listOf(),
Expand All @@ -920,7 +934,7 @@ object TVList {
),
"国际" to listOf(
TV(
60,
61,
"CGTN",
"CGTN",
listOf("http://live.cgtn.com/1000/prog_index.m3u8"),
Expand All @@ -934,7 +948,7 @@ object TVList {
mustToken = false
),
TV(
61,
62,
"CGTN 法语频道",
"CGTN法语频道",
listOf("https://livefr.cgtn.com/1000f/prog_index.m3u8"),
Expand All @@ -948,7 +962,7 @@ object TVList {
mustToken = false
),
TV(
62,
63,
"CGTN 俄语频道",
"CGTN俄语频道",
listOf("http://liveru.cgtn.com/1000r/prog_index.m3u8"),
Expand All @@ -962,7 +976,7 @@ object TVList {
mustToken = false
),
TV(
63,
64,
"CGTN 阿拉伯语频道",
"CGTN阿拉伯语频道",
listOf("http://livear.cgtn.com/1000a/prog_index.m3u8"),
Expand All @@ -976,7 +990,7 @@ object TVList {
mustToken = false
),
TV(
64,
65,
"CGTN 西班牙语频道",
"CGTN西班牙语频道",
listOf(
Expand All @@ -993,7 +1007,7 @@ object TVList {
mustToken = false
),
TV(
65,
66,
"CGTN 纪录频道",
"CGTN外语纪录频道",
listOf("https://livedoc.cgtn.com/500d/prog_index.m3u8"),
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/lizongying/mytv/api/Info.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.lizongying.mytv.api


data class Info(
val code: Int?,
val msg: String?,
Expand Down
Binary file added app/src/main/res/drawable/cetv1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions app/src/main/res/raw/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@
{
"id": 56,
"videoIndex": 0,
"channel": "国际频道",
"channel": "国际",
"logo": "https://resources.yangshipin.cn/assets/oms/image/202306/a72dff758ca1c17cd0ecc8cedc11b893d208f409d5e6302faa0e9d298848abc3.png?imageMogr2/format/webp",
"pid": "600014550",
"sid": "2001656803",
Expand All @@ -878,7 +878,7 @@
{
"id": 57,
"videoIndex": 0,
"channel": "国际频道",
"channel": "国际",
"logo": "https://resources.yangshipin.cn/assets/oms/image/202306/a8d0046a47433d952bf6ed17062deb8bd2184ba9aec0f7781df6bf9487a3ffcf.png?imageMogr2/format/webp",
"pid": "600084704",
"sid": "2010153503",
Expand All @@ -893,7 +893,7 @@
{
"id": 58,
"videoIndex": 0,
"channel": "国际频道",
"channel": "国际",
"logo": "https://resources.yangshipin.cn/assets/oms/image/202306/bf0a820893cbaf20dd0333e27042e1ef9c8806e5b602b6a8c95af399db0bc77a.png?imageMogr2/format/webp",
"pid": "600084758",
"sid": "2010152603",
Expand All @@ -908,7 +908,7 @@
{
"id": 59,
"videoIndex": 0,
"channel": "国际频道",
"channel": "国际",
"logo": "https://resources.yangshipin.cn/assets/oms/image/202306/2e44e2aa3e7a1cedf07fd0ae59fe69e86a60a2632660a006e3e9e7397b2d107e.png?imageMogr2/format/webp",
"pid": "600084782",
"sid": "2010155203",
Expand All @@ -923,7 +923,7 @@
{
"id": 60,
"videoIndex": 0,
"channel": "国际频道",
"channel": "国际",
"logo": "https://resources.yangshipin.cn/assets/oms/image/202309/7c337e3dbe64402ec7e4678a619a4a6d95144e42f35161181ff78e143b7cf67a.png?imageMogr2/format/webp",
"pid": "600084744",
"sid": "2010152503",
Expand All @@ -939,7 +939,7 @@
{
"id": 61,
"videoIndex": 0,
"channel": "国际频道",
"channel": "国际",
"logo": "https://resources.yangshipin.cn/assets/oms/image/202309/74d3ac436a7e374879578de1d87a941fbf566d39d5632b027c5097891ed32bd5.png?imageMogr2/format/webp",
"pid": "600084781",
"sid": "2010155403",
Expand Down

0 comments on commit 558fe7e

Please sign in to comment.