Skip to content

Commit

Permalink
JapScan, fix page count
Browse files Browse the repository at this point in the history
  • Loading branch information
kmvi committed Dec 12, 2018
1 parent 1340603 commit 10405f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/modules/JapScan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ function getinfo()
if mangainfo.title == '' then
mangainfo.title = x.xpathstring('//h1')
mangainfo.title = string.gsub(mangainfo.title, '^Manga ', '')
mangainfo.title = string.gsub(mangainfo.title, '^Manhua ', '')
mangainfo.title = string.gsub(mangainfo.title, '^Manhwa ', '')
mangainfo.title = string.gsub(mangainfo.title, ' VF$', '')
end
mangainfo.coverlink=MaybeFillHost(module.RootURL, x.xpathstring('//div[@id="main"]//img/@src'))
Expand All @@ -27,7 +29,7 @@ function getpagenumber()
task.pagelinks.clear()
if http.get(MaybeFillHost(module.rooturl, url)) then
local x=TXQuery.Create(http.Document)
task.pagenumber = x.xpathcount('//select[@id="pages"]/option[position() < last()]/@value')
task.pagenumber = x.xpathcount('//select[@id="pages"]/option/@value')
else
return false
end
Expand Down

1 comment on commit 10405f7

@trhony88
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you fix japscan plz

Please sign in to comment.