Skip to content

Commit

Permalink
remove [OtakuIndo], fix MangaInfo and add support cloudflare for [Kom…
Browse files Browse the repository at this point in the history
…iku] issue fmd-project-team#416
  • Loading branch information
Abid Zakaria authored Aug 15, 2019
1 parent eda75b8 commit c810a3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/modules/MangaShiro.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ end

function getTitle(x)
local title = ''
if title == '' then title = x.xpathstring('//*[@id="judul"]/h1') end
if title == '' then title = x.xpathstring('//div[@class="infox"]/h1') end
if title == '' then title = x.xpathstring('//h1[@itemprop="headline"]') end
if title == '' then title = x.xpathstring('//h1[@itemprop="name"]') end
Expand Down Expand Up @@ -150,7 +151,7 @@ function getMangas(x)
end
end

if mangainfo.chapterlinks.count < 1 or module.website == 'Komiku' or module.website == 'OtakuIndo' then
if mangainfo.chapterlinks.count < 1 or module.website == 'Komiku' then
local v = x.xpath('//table[@class="chapter"]//td/a')
for i = 1, v.count do
local v1 = v.get(i)
Expand Down Expand Up @@ -233,7 +234,6 @@ function getnameandlink()
['KomikIndo'] = '/manga-list/?list',
['KomikIndoWebId'] = '/daftar-manga/?list',
['Komiku'] = '/daftar-komik/',
['OtakuIndo'] = '/daftar-komik/',
['KazeManga'] = '/manga-list/?list',
['Mangacan'] = '/daftar-komik-manga-bahasa-indonesia.html',
['MangaIndo'] = '/manga-list-201902-v052/',
Expand Down Expand Up @@ -315,8 +315,7 @@ local cat = 'Indonesian'
AddWebsiteModule('MangaIndoNet', 'https://mangaindo.net', cat)
AddWebsiteModule('KomikIndo', 'https://komikindo.co', cat)
AddWebsiteModule('KomikIndoWebId', 'https://www.komikindo.web.id', cat)
AddWebsiteModule('Komiku', 'https://komiku.co', cat)
AddWebsiteModule('OtakuIndo', 'https://otakuindo.co', cat)
AddWebsiteModule('Komiku', 'http://komiku.co', cat)
AddWebsiteModule('KazeManga', 'https://kazemanga.web.id', cat)
AddWebsiteModule('Mangacan', 'http://www.mangacanblog.com', cat)
AddWebsiteModule('MangaIndo', 'https://mangaindo.web.id', cat)
Expand Down

0 comments on commit c810a3a

Please sign in to comment.