Skip to content

Commit 92ac6c7

Browse files
committed
[release] 5.4.6
1 parent f93e4e7 commit 92ac6c7

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

app/src/main/assets/update_log.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
- 2024/11/10 5.4.6 紧急修复
2+
新增 js 番剧源加载和添加功能(调试套件下版本添加)
3+
修复 录制视频 Bug
4+
修复 首次启动 PreferenceHelper 数据没加载
5+
修复 添加 拓展 时下载失败崩溃
6+
修复 调试番源出现的问题
7+
18
- 2024/11/10 5.4.5
29
新增 js 番剧源加载和添加功能(调试套件下版本添加)
310
修复 录制视频 Bug

app/src/main/java/com/heyanle/easybangumi4/plugin/extension/push/PushFromFileUrl.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ class PushFromFileUrl(
5959
// 下载
6060
try {
6161
it.first.delete()
62-
it.second.downloadTo(it.first.absolutePath)
62+
kotlin.runCatching {
63+
it.second.downloadTo(it.first.absolutePath)
64+
}.onFailure {
65+
it.printStackTrace()
66+
}
67+
6368
yield()
6469
if (it.first.exists() && it.first.length() > 0){
6570
completelyDownloadCount ++

app/src/main/java/com/heyanle/easybangumi4/plugin/extension/push/PushFromRepo.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ class PushFromRepo(
4848
val repoJsonlFile = File(cacheFolder, CACHE_REPO_JSONL_NAME)
4949
repoJsonlFile.delete()
5050
// 1. 下载 jsonl
51-
param.str1.downloadTo(repoJsonlFile.absolutePath)
51+
kotlin.runCatching {
52+
param.str1.downloadTo(repoJsonlFile.absolutePath)
53+
}.onFailure {
54+
it.printStackTrace()
55+
}
56+
5257
if (!repoJsonlFile.exists() || repoJsonlFile.length().toInt() == 0){
5358
container.dispatchError(stringRes(R.string.load_fail))
5459
return
@@ -78,7 +83,12 @@ class PushFromRepo(
7883
// 下载
7984
try {
8085
it.first.delete()
81-
it.second.downloadTo(it.first.absolutePath)
86+
kotlin.runCatching {
87+
it.second.downloadTo(it.first.absolutePath)
88+
}.onFailure {
89+
it.printStackTrace()
90+
}
91+
8292
yield()
8393
if (it.first.exists() && it.first.length() > 0){
8494
completelyDownloadCount ++

app/src/main/java/com/heyanle/easybangumi4/plugin/source/SourceController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SourceController(
7373

7474
private val innerSource = listOf<Source>(
7575
LocalSource,
76-
DebugSource
76+
// DebugSource
7777
)
7878

7979

buildSrc/src/main/java/com/heyanle/buildsrc/Android.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ object Android {
99
const val targetSdk = 34
1010
const val compileSdk = 34
1111

12-
const val versionCode = 97
13-
const val versionName = "5.4.5"
12+
const val versionCode = 98
13+
const val versionName = "5.4.6"
1414

1515

1616
}

0 commit comments

Comments
 (0)