mirror of
https://github.com/gedoor/legado.git
synced 2025-01-07 03:06:58 +08:00
[skip ci] add comments and use LF
This commit is contained in:
parent
03dce089b0
commit
73a27d27d4
@ -93,7 +93,7 @@ https://www.yuque.com/legado/wiki/community
|
||||
* Legado 3.0 The API is provided in 2 ways: `Web way` and `Content Provider way`. You can call it yourself as needed in [here](api.md).
|
||||
* One-click import by url recall reading, url format: legado://import/{path}?src={url}
|
||||
* Path Type: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf
|
||||
* path type explanation: Book source, subscription source, replacement rules, local txt novel directory rules, online reading engine, theme, reading layout, add to bookshelf
|
||||
* path type explanation: Book source, subscription source, replacement rules, local txt novel directory rules, online reading engine, theme, reading layout, [add to bookshelf](/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt)
|
||||
|
||||
<a href="#readme">
|
||||
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
|
||||
|
@ -59,7 +59,7 @@ https://www.yuque.com/legado/wiki/community
|
||||
# API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-)
|
||||
* 阅读3.0 提供了2种方式的API:`Web方式`和`Content Provider方式`。您可以在[这里](api.md)根据需要自行调用。
|
||||
* 可通过url唤起阅读进行一键导入,url格式: legado://import/{path}?src={url}
|
||||
* path类型: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf
|
||||
* path类型: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,[addToBookshelf](/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt)
|
||||
* path类型解释: 书源,订阅源,替换规则,本地txt小说目录规则,在线朗读引擎,主题,阅读排版,添加到书架
|
||||
|
||||
<a href="#readme">
|
||||
|
@ -23,6 +23,14 @@ import io.legado.app.ui.book.read.ReadBookActivity
|
||||
import io.legado.app.utils.*
|
||||
import io.legado.app.utils.viewbindingdelegate.viewBinding
|
||||
|
||||
/**
|
||||
* 添加书籍链接到书架,需要对应网站书源
|
||||
* ${origin}/${path}, {origin: bookSourceUrl}
|
||||
* 按以下顺序尝试匹配书源并添加网址
|
||||
* - UrlOption中的指定的书源网址bookSourceUrl
|
||||
* - 在所有启用的书源中匹配orgin
|
||||
* - 在所有启用的书源中使用详情页正则匹配${origin}/${path}, {origin: bookSourceUrl}
|
||||
*/
|
||||
class AddToBookshelfDialog() : BaseDialogFragment(R.layout.dialog_add_to_bookshelf) {
|
||||
|
||||
constructor(bookUrl: String, finishOnDismiss: Boolean = false) : this() {
|
||||
|
Loading…
Reference in New Issue
Block a user