Skip to content

Commit

Permalink
fix: search all mangas from mangasee
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Jan 26, 2023
1 parent 6b4dd53 commit de19737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/mangal/sources/Mangasee.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function SearchManga(query)
local page = Browser:page()
page:navigate(Base .. "/search/?name=" .. HttpUtil.query_escape(query))
page:waitLoad()
while page:has('button[ng-click="vm.NextPage()"]') == true do
page:element('button[ng-click="vm.NextPage()"]'):click()
end


local doc = Html.parse(page:html())
local mangas = {}
Expand Down
2 changes: 2 additions & 0 deletions docker/root/etc/cont-init.d/40-config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ mkdir -p /config/.config

cp -r /mangal /config/.config

rm -rf /config/.cache/mangal/Mangasee_custom_mangas.json

# permissions
# chown -R abc:abc \
# /app \
Expand Down

0 comments on commit de19737

Please sign in to comment.