Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop_imcys' into release
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/src/main/res/values-zh-rTW/strings.xml
  • Loading branch information
1250422131 committed Apr 27, 2024
2 parents d73f469 + 917948f commit c7f09c2
Show file tree
Hide file tree
Showing 29 changed files with 351 additions and 184 deletions.
2 changes: 1 addition & 1 deletion README-en_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

---

**Language:**
**Languages:**
- English (United States)
- [简体中文](./README.md)
- [繁体中文(台湾)](./README-zh_TW.md)
Expand Down
26 changes: 13 additions & 13 deletions README-zh_TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@

---

**語言選擇:**
- [English (United States)](./README-en_US.md) (英文版)
- [简体中文](./READMEmd) (简体中文版)
- [繁體中文(台灣)](./README-zh_TW.md) (繁體中文版-台灣)
**Languages:**
- [English (United States)](./README-en_US.md)
- [简体中文](./README.md)
- [臺灣繁體](./README-zh_TW.md)

## 簡介

**BILIBILIAS** 是一款B站,哔哩哔哩視頻緩存的輔助工具,一鍵解析緩存
**BILIBILIAS** 是一款B站,哔哩哔哩影片快取的輔助工具,一鍵解析快取

使用它來幫助你緩存視頻,目前我們也支持了相當多的功能,使用它幫助你完成工作。
使用它來幫助你快取影片,目前我們也支持了相當多的功能,使用它幫助你完成工作。

UP主可以下載一些剪輯素材,來做視頻
UP主可以下載一些剪輯素材,來製作影片

項目特殊性,隨時可能停止運維。

## 支持的功能

- 完成的功能
- [x] 掃碼登錄
- [x] 緩存視頻/大陸支持播放的番劇
- [x] 個人中心 -> 幫助緩存自己的視頻
- [x] 掃描QR碼登錄
- [x] 快取影片/大陸支持播放的番劇
- [x] 個人中心 -> 幫助快取自己的影片
- [x] 批量下載
- [x] 後臺下載功能
- [x] 支持ffmpeg
Expand All @@ -55,7 +55,7 @@ UP主可以下載一些剪輯素材,來做視頻。

[BRV:實現RV的動畫效果](https://github.com/liangjingkanji/BRV)

[RxFFmpeg:支持視頻合併等操作](https://github.com/microshow/RxFFmpeg)
[RxFFmpeg:支持影片合併等操作](https://github.com/microshow/RxFFmpeg)

[KComponent:組件化路由庫](https://github.com/xiaojinzi123/KComponent)

Expand All @@ -77,8 +77,8 @@ UP主可以下載一些剪輯素材,來做視頻。

## 下載

| 系統 | GitHub | 官網 |
|:-------:|:------------------------------------------------------------:|:-------------------------------------:|
| 系統 | GitHub | 官網 |
|:-------:|:------------------------------------------------------------:|:------------------------------------:|
| Android | [Release](https://github.com/1250422131/bilibilias/releases) | [官網](https://api.misakamoe.com/app/) |

## 🔭最近關注
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

---

**Language:**
**Languages:**

- [English (United States)](./README-en_US.md)
- 简体中文
- [繁体中文(台湾)](./README-zh_TW.md)
- [简体中文](./README.md)
- [臺灣繁體](./README-zh_TW.md)

## 简介

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android {
// noinspecton ExpiredTargetSdkVersion
targetSdk = 34
versionCode = 204
versionName = "2.0.4"
versionName = "2.0.41"
// multiDexEnabled true
// def appCenterSecret = getRootProject().getProperties().get("APP_CENTER_SECRET")
// buildConfigField("String", "APP_CENTER_SECRET", """ + appCenterSecret + """)
Expand Down
Binary file added app/release/baselineProfiles/0/app-release.dm
Binary file not shown.
Binary file added app/release/baselineProfiles/1/app-release.dm
Binary file not shown.
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 203,
"versionName": "2.0.4",
"versionCode": 204,
"versionName": "2.0.41",
"outputFile": "app-release.apk"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ data class LoginQrcodeBean(
@Serializable
data class DataBean(
var url: String = "",
var qrcode_key: String = "",
var qrcodeKey: String = "",
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data class LoginStateBean(
@Serializable
data class DataBean(
val url: String = "",
val refresh_token: String = "",
val refreshToken: String = "",
val code: Int = 0,
val message: String = "",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class LoginQRModel @Inject constructor(
fun loginSuccessOp(loginStateBean: LoginStateBean, response: Response) {
val kv = MMKV.mmkvWithID("data")

kv.encode("refreshToken", loginStateBean.data.refresh_token)
kv.encode("refreshToken", loginStateBean.data.refreshToken)

var cookies = ""
// 创建 Pattern 对象
Expand All @@ -195,7 +195,7 @@ class LoginQRModel @Inject constructor(
}
kv.apply {
encode(COOKIES, cookies)
encode("refreshToken", loginStateBean.data.refresh_token)
encode("refreshToken", loginStateBean.data.refreshToken)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.appcompat.app.AlertDialog
import androidx.lifecycle.ViewModel
import com.baidu.mobstat.StatService
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.imcys.bilibilias.R
import com.imcys.bilibilias.common.base.utils.asToast

class LoginViewModel : ViewModel() {
Expand All @@ -27,7 +28,7 @@ class LoginViewModel : ViewModel() {

@SuppressLint("SetJavaScriptEnabled")
private fun biliAgreement(context: Context) {
asToast(context, "无论如何,你都在间接使用B站")
asToast(context, context.getString(R.string.app_login_view_biliagreement_context))

val lLayout = LinearLayout(context).apply {
orientation = LinearLayout.VERTICAL
Expand Down Expand Up @@ -58,8 +59,8 @@ class LoginViewModel : ViewModel() {
AlertDialog.Builder(context).apply {
setView(lLayout)
setCancelable(false)
setTitle("B站账户需要遵守的协议列表")
setPositiveButton("使用则代表同意") { dialog, _ ->
setTitle(context.getString(R.string.app_login_view_biliagreement_alert_title))
setPositiveButton(context.getString(R.string.app_login_view_biliagreement_alert_button_text)) { dialog, _ ->
privacy.destroy()
dialog.cancel()
}
Expand Down Expand Up @@ -92,9 +93,9 @@ class LoginViewModel : ViewModel() {
val builder = AlertDialog.Builder(context)
builder.setView(lLayout)
builder.setCancelable(false)
builder.setTitle("BILIBILIAS隐私政策")
builder.setTitle(context.getString(R.string.app_login_view_bilibiliasagreement_title))
builder.setPositiveButton(
"使用则代表同意",
context.getString(R.string.app_login_view_bilibiliasagreement_text),
) { dialog, which ->
dialog.cancel()
}
Expand Down
11 changes: 7 additions & 4 deletions app/src/main/java/com/imcys/bilibilias/base/utils/DialogUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ object DialogUtils {
}

dialogLoginAs.setOnClickListener {
asToast(context, "云端账户即将出炉")
asToast(context, context.getString(R.string.app_dialog_dialog_astoast_content))
// bottomSheetDialog.cancel()
// loginAsDialog(context) {
// bottomSheetDialog.cancel()
Expand Down Expand Up @@ -536,6 +536,7 @@ object DialogUtils {
StatService.onEvent(
App.context,
"AnalysisVideo",
// No need to translate
"解析视频",
1,
properties,
Expand Down Expand Up @@ -789,7 +790,7 @@ object DialogUtils {
}


@SuppressLint("CommitPrefEdits")
@SuppressLint("CommitPrefEdits", "SetTextI18n")
@JvmStatic
fun batchDownloadVideoDialog(
context: Context,
Expand Down Expand Up @@ -985,7 +986,7 @@ object DialogUtils {
* @param dashVideoPlayBean DashVideoPlayBean
* @return BottomSheetDialog
*/
@SuppressLint("CommitPrefEdits")
@SuppressLint("CommitPrefEdits", "SetTextI18n")
@JvmStatic
fun downloadVideoDialog(
context: Context,
Expand Down Expand Up @@ -1184,6 +1185,7 @@ object DialogUtils {
* @param dashVideoPlayBean DashVideoPlayBean
* @return BottomSheetDialog
*/
@SuppressLint("SetTextI18n")
@JvmStatic
fun downloadVideoDialog(
context: Context,
Expand Down Expand Up @@ -1391,7 +1393,8 @@ object DialogUtils {
val dataBean: BangumiSeasonBean.ResultBean.EpisodesBean,
)

Toast.makeText(context, "已添加到下载队列", Toast.LENGTH_SHORT).show()
Toast.makeText(context,
context.getString(R.string.app_dialog_addbangumidownloadtask_toast_text), Toast.LENGTH_SHORT).show()

launchUI {
flow {
Expand Down
Loading

0 comments on commit c7f09c2

Please sign in to comment.