Resolving more mistakes in CONTRIBUTING.md (#3259)
Primarily spelling and grammatical errors have been corrected.
This commit is contained in:
parent
16ab915b4e
commit
7ec3a468d6
|
@ -87,31 +87,31 @@ dependencies {
|
|||
### Useful knowledge
|
||||
|
||||
- An extension should at least extend the [`ParsedHttpSource`](https://github.com/inorichi/tachiyomi-extensions-lib/blob/master/library/src/main/java/eu/kanade/tachiyomi/source/online/ParsedHttpSource.kt) class.
|
||||
- Do not override id!! it will auto generate based on the name of the extension and the language
|
||||
- set the thumbnail cover when possible. when parsing the list of manga during latest, search, browse. if not the site will get a new request for every manga that doesnt have a cover shown. even if the user doesnt click into the manga.
|
||||
- Do not override id!! It will auto-generate based on the name of the extension and the language.
|
||||
- Set the thumbnail cover when possible. When parsing the list of manga during latest, search, browse. If not the site will get a new request for every manga that doesn't have a cover shown, even if the user doesnt click into the manga.
|
||||
|
||||
|
||||
|
||||
#### Flow of the extensions
|
||||
The structure for an extension is very strict. In the future 1.x release this will be less strict but until then this has caused some issues when some sites don't quite fit the model. There are required overrides but you can override the calling methods if you need more general control. This will go from highest level method to lowest level for browse/popular, it is the same but different method names for search and latest.
|
||||
The structure for an extension is very strict. In the future 1.x release this will be less strict but until then this has caused some issues when some sites don't quite fit the model. There are required overrides but you can override the calling methods if you need more general control. This will go from the highest level method to the lowest level for browse/popular, it is the same but different method names for search and latest.
|
||||
##### Browse (Aka Popular Manga)
|
||||
- fetchPopularManga (Optional to override)
|
||||
- This method takes the results from a manga listing page and parses it.
|
||||
- popularMangaRequest (Must be overridden)
|
||||
- The GET/POST for the HTML Page of the manga listings
|
||||
- The GET/POST for the HTML Page of the manga listings.
|
||||
- popularMangaParse (Optional to override)
|
||||
- parses the manga listing page returns boolean if has another page, and the manga objects as MangasPage
|
||||
- Parses the manga listing page returns a boolean if has another page, and the manga objects as MangasPage.
|
||||
- popularMangaSelector (must be overridden)
|
||||
- jsoup css selector to select the list of the manga
|
||||
- jsoup CSS selector to select the list of the manga.
|
||||
- popularMangaFromElement (must be overriden)
|
||||
- jsoup selectors to parse the individual manga html on the page (most sites this is just link, title, cover url)
|
||||
- popularMangaNextPageSelector (must be overridden)
|
||||
- jsoup css selector to see if there is a another page after current one
|
||||
- jsoup CSS selector to see if there is a another page after current one.
|
||||
|
||||
This will provide the initial viewing once a user clicks into a manga you will need to override mangaDetailsParse and this is where you need to parse the actual manga site's manga page and parse the standard info (title, author, description etc etc)
|
||||
This will provide the initial viewing once a user clicks into a manga you will need to override mangaDetailsParse and this is where you need to parse the actual manga site's manga page and parse the standard info (title, author, description etc etc).
|
||||
|
||||
###### Note:
|
||||
Must be overriden are required to be overridden even if you override the parent method and its not being called anymore. (for example i override popularMangaParse and dont need popularMangaNextPage selector I would just override in the extension and throw a not used exception)
|
||||
Must be overriden even if you override the parent method and it's not being called anymore (for example I override popularMangaParse and don't need the popularMangaNextPage selector. I would just override in the extension and throw a not used exception).
|
||||
|
||||
|
||||
## Running
|
||||
|
|
Loading…
Reference in New Issue