mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions.git
synced 2025-12-10 08:52:03 +01:00
Update to extensions-lib 1.4.3 (#17781)
This commit is contained in:
@@ -307,7 +307,7 @@ a.k.a. the Browse source entry point in the app (invoked by tapping on the sourc
|
||||
- The app calls `fetchPopularManga` which should return a `MangasPage` containing the first batch of found `SManga` entries.
|
||||
- This method supports pagination. When user scrolls the manga list and more results must be fetched, the app calls it again with increasing `page` values (starting with `page=1`). This continues while `MangasPage.hasNextPage` is passed as `true` and `MangasPage.mangas` is not empty.
|
||||
- To show the list properly, the app needs `url`, `title` and `thumbnail_url`. You **must** set them here. The rest of the fields could be filled later (refer to Manga Details below).
|
||||
- You should set `thumbnail_url` if is available, if not, `fetchMangaDetails` will be **immediately** called (this will increase network calls heavily and should be avoided).
|
||||
- You should set `thumbnail_url` if is available, if not, `getMangaDetails` will be **immediately** called (this will increase network calls heavily and should be avoided).
|
||||
|
||||
#### Latest Manga
|
||||
|
||||
@@ -350,15 +350,15 @@ open class UriPartFilter(displayName: String, private val vals: Array<Pair<Strin
|
||||
|
||||
#### Manga Details
|
||||
|
||||
- When user taps on a manga, `fetchMangaDetails` and `fetchChapterList` will be called and the results will be cached.
|
||||
- When user taps on a manga, `getMangaDetails` and `getChapterList` will be called and the results will be cached.
|
||||
- A `SManga` entry is identified by it's `url`.
|
||||
- `fetchMangaDetails` is called to update a manga's details from when it was initialized earlier.
|
||||
- `SManga.initialized` tells the app if it should call `fetchMangaDetails`. If you are overriding `fetchMangaDetails`, make sure to pass it as `true`.
|
||||
- `getMangaDetails` is called to update a manga's details from when it was initialized earlier.
|
||||
- `SManga.initialized` tells the app if it should call `getMangaDetails`. If you are overriding `getMangaDetails`, make sure to pass it as `true`.
|
||||
- `SManga.genre` is a string containing list of all genres separated with `", "`.
|
||||
- `SManga.status` is an "enum" value. Refer to [the values in the `SManga` companion object](https://github.com/tachiyomiorg/extensions-lib/blob/master/library/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt#L24).
|
||||
- During a backup, only `url` and `title` are stored. To restore the rest of the manga data, the app calls `fetchMangaDetails`, so all fields should be (re)filled in if possible.
|
||||
- If a `SManga` is cached, `fetchMangaDetails` will be only called when the user does a manual update (Swipe-to-Refresh).
|
||||
- `fetchChapterList` is called to display the chapter list.
|
||||
- During a backup, only `url` and `title` are stored. To restore the rest of the manga data, the app calls `getMangaDetails`, so all fields should be (re)filled in if possible.
|
||||
- If a `SManga` is cached, `getMangaDetails` will be only called when the user does a manual update (Swipe-to-Refresh).
|
||||
- `getChapterList` is called to display the chapter list.
|
||||
- **The list should be sorted descending by the source order**.
|
||||
- `getMangaUrl` is called when the user taps "Open in WebView".
|
||||
- If the source uses an API to fetch the data, consider overriding this method to return the manga absolute URL in the website instead.
|
||||
@@ -397,7 +397,7 @@ open class UriPartFilter(displayName: String, private val vals: Array<Pair<Strin
|
||||
|
||||
#### Chapter Pages
|
||||
|
||||
- When user opens a chapter, `fetchPageList` will be called and it will return a list of `Page`s.
|
||||
- When user opens a chapter, `getPageList` will be called and it will return a list of `Page`s.
|
||||
- While a chapter is open in the reader or is being downloaded, `fetchImageUrl` will be called to get URLs for each page of the manga if the `Page.imageUrl` is empty.
|
||||
- If the source provides all the `Page.imageUrl`'s directly, you can fill them and let the `Page.url` empty, so the app will skip the `fetchImageUrl` source and call directly `fetchImage`.
|
||||
- The `Page.url` and `Page.imageUrl` attributes **should be set as an absolute URL**.
|
||||
|
||||
Reference in New Issue
Block a user