优化
This commit is contained in:
@@ -738,6 +738,9 @@ class AnalyzeRule(
|
||||
* 保存数据
|
||||
*/
|
||||
fun put(key: String, value: String): String {
|
||||
if (key == "bookName" || key == "title") {
|
||||
Debug.log("≡变量 $key 在特定情况下会被覆盖,建议使用其他键名")
|
||||
}
|
||||
chapter?.putVariable(key, value)
|
||||
?: book?.putVariable(key, value)
|
||||
?: ruleData?.putVariable(key, value)
|
||||
|
||||
@@ -39,6 +39,7 @@ import io.legado.app.help.http.postForm
|
||||
import io.legado.app.help.http.postJson
|
||||
import io.legado.app.help.http.postMultipart
|
||||
import io.legado.app.help.source.getShareScope
|
||||
import io.legado.app.model.Debug
|
||||
import io.legado.app.utils.EncoderUtils
|
||||
import io.legado.app.utils.GSON
|
||||
import io.legado.app.utils.GSONStrict
|
||||
@@ -370,6 +371,9 @@ class AnalyzeUrl(
|
||||
}
|
||||
|
||||
fun put(key: String, value: String): String {
|
||||
if (key == "bookName" || key == "title") {
|
||||
Debug.log("≡变量 $key 在特定情况下会被覆盖,建议使用其他键名")
|
||||
}
|
||||
chapter?.putVariable(key, value)
|
||||
?: ruleData?.putVariable(key, value)
|
||||
return value
|
||||
|
||||
@@ -820,7 +820,7 @@
|
||||
<string name="sync_book_progress_t">Progreso de lectura sincronizado</string>
|
||||
<string name="sync_book_progress_s">Sincronizar el progreso de la lectura al entrar y salir de la pantalla de lectura</string>
|
||||
<string name="sync_book_progress_plus_t">Mejora de Sincronización</string>
|
||||
<string name="sync_book_progress_plus_s">Sincronizar el progreso en la nube al volver a entrar en la página (por ejemplo, tras apagar la pantalla o al regresar desde el fondo) o cuando la red esté disponible</string>
|
||||
<string name="sync_book_progress_plus_s">Vuelve a sincronizar el progreso en la nube al regresar a la página (pantalla apagada, regreso desde segundo plano, etc.) o cuando la red esté disponible. Se pedirá confirmación antes de sincronizar el nuevo progreso.</string>
|
||||
<string name="create_bookmark_error">No se pudo marcar</string>
|
||||
<string name="single_url">URL única</string>
|
||||
<string name="export_bookshelf">Exportar lista de libros</string>
|
||||
|
||||
@@ -823,7 +823,7 @@
|
||||
<string name="sync_book_progress_t">Synchronous reading progress</string>
|
||||
<string name="sync_book_progress_s">Synchronize reading progress when entering / exiting the reading interface</string>
|
||||
<string name="sync_book_progress_plus_t">同期強化</string>
|
||||
<string name="sync_book_progress_plus_s">ページに再入力する時(スリープ解除やバックグラウンドから復帰など)、またはネットワークが利用可能になるとクラウド進捗を同期します</string>
|
||||
<string name="sync_book_progress_plus_s">ページに再度入ったとき(画面オフ、バックグラウンドからの復帰など)やネットワークが利用可能になったときにクラウドの進捗を同期します。新しい進捗を同期する前に確認します。</string>
|
||||
<string name="create_bookmark_error">Failed to create bookmark</string>
|
||||
<string name="single_url">Single URL</string>
|
||||
<string name="export_bookshelf">Export the list of books</string>
|
||||
|
||||
@@ -821,7 +821,7 @@
|
||||
<string name="sync_book_progress_t">Progresso de leitura sincronizada</string>
|
||||
<string name="sync_book_progress_s">Sincronizar o progresso da leitura ao entrar e sair da tela de leitura</string>
|
||||
<string name="sync_book_progress_plus_t">Aprimoramento de Sincronização</string>
|
||||
<string name="sync_book_progress_plus_s">Sincronizar o progresso na nuvem ao reentrar na página (por exemplo, após desligar a tela ou ao retornar do fundo) ou quando a rede estiver disponível</string>
|
||||
<string name="sync_book_progress_plus_s">Ressincroniza o progresso na nuvem ao retornar à página (tela desligada, retorno do segundo plano, etc.) ou quando a rede estiver disponível. Será solicitada confirmação antes de sincronizar o novo progresso.</string>
|
||||
<string name="create_bookmark_error">Falha ao marcar como favorito</string>
|
||||
<string name="single_url">URL única</string>
|
||||
<string name="export_bookshelf">Exportar a lista de livros</string>
|
||||
|
||||
@@ -820,7 +820,7 @@
|
||||
<string name="sync_book_progress_t">Đồng bộ tiến độ đọc</string>
|
||||
<string name="sync_book_progress_s">Đồng bộ tiến độ đọc khi vào/ra giao diện đọc</string>
|
||||
<string name="sync_book_progress_plus_t">Tăng cường đồng bộ</string>
|
||||
<string name="sync_book_progress_plus_s">Đồng bộ tiến độ trên đám mây khi vào lại trang (ví dụ: sau khi tắt màn hình, quay lại từ nền, v.v.) hoặc khi mạng khả dụng</string>
|
||||
<string name="sync_book_progress_plus_s">Đồng bộ lại tiến trình trên đám mây khi quay lại trang (tắt màn hình, trở lại từ nền, v.v.) hoặc khi mạng khả dụng. Sẽ yêu cầu xác nhận trước khi đồng bộ tiến trình mới.</string>
|
||||
<string name="sync_book_progress_success">Đồng bộ tiến độ thành công</string>
|
||||
<string name="create_bookmark_error">Không thể tạo dấu trang</string>
|
||||
<string name="single_url">URL đơn</string>
|
||||
|
||||
@@ -816,7 +816,7 @@
|
||||
<string name="sync_book_progress_t">同步閱讀進度</string>
|
||||
<string name="sync_book_progress_s">進入退出閱讀介面時同步閱讀進度</string>
|
||||
<string name="sync_book_progress_plus_t">同步增強</string>
|
||||
<string name="sync_book_progress_plus_s">重新進入頁面(熄屏、返回背景等)或者當網絡可用時同步雲端進度</string>
|
||||
<string name="sync_book_progress_plus_s">重新進入頁面(息屏、從背景返回等)或網路恢復可用時同步雲端進度,同步新進度時會詢問</string>
|
||||
<string name="create_bookmark_error">建立書籤失敗</string>
|
||||
<string name="single_url">單URL</string>
|
||||
<string name="export_bookshelf">導出書單</string>
|
||||
|
||||
@@ -819,7 +819,7 @@
|
||||
<string name="sync_book_progress_t">同步閱讀進度</string>
|
||||
<string name="sync_book_progress_s">進入退出閱讀介面時同步閱讀進度</string>
|
||||
<string name="sync_book_progress_plus_t">同步增強</string>
|
||||
<string name="sync_book_progress_plus_s">重新進入頁面(熄屏、背景返回等)或網路變為可用時同步雲端進度</string>
|
||||
<string name="sync_book_progress_plus_s">重新進入頁面(息屏、從背景返回等)或網路恢復可用時同步雲端進度,同步新進度時會詢問</string>
|
||||
<string name="create_bookmark_error">建立書籤失敗</string>
|
||||
<string name="single_url">單URL</string>
|
||||
<string name="export_bookshelf">匯出書單</string>
|
||||
|
||||
@@ -827,7 +827,7 @@
|
||||
<string name="sync_book_progress_t">同步阅读进度</string>
|
||||
<string name="sync_book_progress_s">进入退出阅读界面时同步阅读进度</string>
|
||||
<string name="sync_book_progress_plus_t">同步增强</string>
|
||||
<string name="sync_book_progress_plus_s">重新进入页面(息屏、后台返回等)或者网络变为可用时同步云端进度</string>
|
||||
<string name="sync_book_progress_plus_s">重新进入页面(息屏、后台返回等)或者网络变为可用时同步云端进度,同步新进度会询问</string>
|
||||
<string name="create_bookmark_error">创建书签失败</string>
|
||||
<string name="single_url">单 URL</string>
|
||||
<string name="export_bookshelf">导出书单</string>
|
||||
|
||||
@@ -827,7 +827,7 @@
|
||||
<string name="sync_book_progress_t">Synchronous reading progress</string>
|
||||
<string name="sync_book_progress_s">Synchronize reading progress when entering / exiting the reading interface</string>
|
||||
<string name="sync_book_progress_plus_t">Sync Enhancement</string>
|
||||
<string name="sync_book_progress_plus_s">Sync cloud progress when re-entering the page (e.g., after screen off, returning from background, etc.) or when the network becomes available</string>
|
||||
<string name="sync_book_progress_plus_s">Sync cloud progress when re-entering the page (screen off, returning from background, etc.) or when the network becomes available. You will be prompted before syncing new progress.</string>
|
||||
<string name="sync_book_progress_success">Sync progress success</string>
|
||||
<string name="create_bookmark_error">Failed to create bookmark</string>
|
||||
<string name="single_url">Single URL</string>
|
||||
|
||||
Reference in New Issue
Block a user