File tree Expand file tree Collapse file tree 5 files changed +28
-6
lines changed
java/com/heyanle/easybangumi4/plugin
buildSrc/src/main/java/com/heyanle/buildsrc Expand file tree Collapse file tree 5 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ++
Original file line number Diff line number Diff 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 ++
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class SourceController(
7373
7474 private val innerSource = listOf<Source >(
7575 LocalSource ,
76- DebugSource
76+ // DebugSource
7777 )
7878
7979
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments