mirror of
https://github.com/tachiyomiorg/extensions-lib.git
synced 2024-11-16 16:29:19 +01:00
Add methods to get manga and chapter url (#8)
* Add methods to get manga and chapter url * Add since to javadoc
This commit is contained in:
parent
1a81ff5cc2
commit
7be52d2c4c
@ -291,6 +291,28 @@ abstract class HttpSource : CatalogueSource {
|
||||
private fun getUrlWithoutDomain(orig: String): String {
|
||||
throw Exception("Stub!")
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the url of the provided manga
|
||||
*
|
||||
* @since extensions-lib 1.4
|
||||
* @param manga the manga
|
||||
* @return url of the manga
|
||||
*/
|
||||
open fun getMangaUrl(manga: SManga): String {
|
||||
throw Exception("Stub!")
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the url of the provided chapter
|
||||
*
|
||||
* @since extensions-lib 1.4
|
||||
* @param chapter the chapter
|
||||
* @return url of the chapter
|
||||
*/
|
||||
open fun getChapterUrl(chapter: SChapter): String {
|
||||
throw Exception("Stub!")
|
||||
}
|
||||
|
||||
/**
|
||||
* Called before inserting a new chapter into database. Use it if you need to override chapter
|
||||
@ -299,8 +321,7 @@ abstract class HttpSource : CatalogueSource {
|
||||
* @param chapter the chapter to be added.
|
||||
* @param manga the manga of the chapter.
|
||||
*/
|
||||
open fun prepareNewChapter(chapter: SChapter, manga: SManga) {
|
||||
}
|
||||
open fun prepareNewChapter(chapter: SChapter, manga: SManga) {}
|
||||
|
||||
/**
|
||||
* Returns the list of filters for the source.
|
||||
|
Loading…
Reference in New Issue
Block a user