Skip to content

Commit

Permalink
update Scribblehub.kt - add filter latest-updated-novels (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-malav authored May 31, 2024
1 parent 194bb9f commit 7ed9e90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sources/en/scribblehub/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
listOf("en").map { lang ->
Extension(
name = "ScribbleHub",
versionCode = 2,
versionCode = 3,
libVersion = "1",
lang = lang,
description = "",
Expand Down
13 changes: 13 additions & 0 deletions sources/en/scribblehub/main/src/ireader/scribblehub/Scribblehub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ abstract class Scribblehub(private val deps: Dependencies) : SourceFactory(

override fun getFilters(): FilterList = listOf(
Filter.Title(),
Filter.Sort("Sort By:", arrayOf("Popular", "Latest"))
)

override fun getCommands(): CommandList {
Expand All @@ -52,6 +53,18 @@ abstract class Scribblehub(private val deps: Dependencies) : SourceFactory(
nextPageSelector = "body",
linkAtt = "href",
),
BaseExploreFetcher(
"Latest",
endpoint = "/?pg={page}",
selector = "tr.toc_w",
nameSelector = "a.fp_title",
nameAtt = "title",
coverSelector = "img",
coverAtt = "src",
linkSelector = "a.fp_title",
linkAtt = "href",
nextPageSelector = "body"
),
BaseExploreFetcher(
"Search",
endpoint = "/?s={query}&post_type=fictionposts",
Expand Down

0 comments on commit 7ed9e90

Please sign in to comment.