fix: add sources, update icons (#693)

* allnovelfull

* comrade mao and search pagination

* divine dao library

* early novel and icon update

* make images great
This commit is contained in:
K1ngfish3r
2024-01-16 18:16:45 +08:00
committed by GitHub
parent dd493d5496
commit 23eaba4b03
118 changed files with 2588 additions and 718 deletions
+744
View File
@@ -0,0 +1,744 @@
{
"العربية": [
{
"id": "ar-mtl",
"name": "ArMTL[madara]",
"site": "https://ar-mtl.club/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/ArMTL[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/armtl.png"
},
{
"id": "arnovel",
"name": "ArNovel[madara]",
"site": "https://arnovel.me/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/ArNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/arnovel.png"
},
{
"id": "hizomanga",
"name": "HizoManga[madara]",
"site": "https://hizomanga.com/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/HizoManga[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/hizomanga.png"
},
{
"id": "kol-novel",
"name": "Kol Novel[wpmangastream]",
"site": "https://kolnovel.com/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/KolNovel[wpmangastream].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/wpmangastream/icons/kol-novel.png"
},
{
"id": "kolnovel",
"name": "KolNovel",
"site": "https://kolnovel.lol/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/kolnovel.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/wpmangastream/icons/kolnovel.png"
},
{
"id": "novel4up",
"name": "Novel4Up[madara]",
"site": "https://novel4up.com/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/Novel4Up[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/novel4up.png"
},
{
"id": "riwyat",
"name": "Riwyat[madara]",
"site": "https://riwyat.com/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/Riwyat[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/riwyat.png"
},
{
"id": "teamxnovel",
"name": "TeamXNovel[madara]",
"site": "https://teamxnovel.com/",
"lang": "العربية",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/arabic/TeamXNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/teamxnovel.png"
}
],
"中文, 汉语, 漢語": [
{
"id": "linovelib",
"name": "Linovelib",
"site": "https://w.linovelib.com",
"lang": "中文, 汉语, 漢語",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/chinese/linovelib.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/cn/linovelib/icon.png"
}
],
"English": [
{
"id": "1stkissnovel",
"name": "FirstKissNovel[madara]",
"site": "https://1stkissnovel.org/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/FirstKissNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/firstkissnovel.png"
},
{
"id": "anf.net",
"name": "AllNovelFull",
"site": "https://allnovelfull.net",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/allnovelfull.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/allnovelfull/icon.png"
},
{
"id": "BLN.com",
"name": "BestLightNovel",
"site": "https://bestlightnovel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/bestlightnovel.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/bestlightnovel/icon.png"
},
{
"id": "boxnovel",
"name": "BoxNovel[madara]",
"site": "https://boxnovel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/BoxNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/boxnovel.png"
},
{
"id": "clicknovel",
"name": "ClickNovel[madara]",
"site": "https://clicknovel.net/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/ClickNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/clicknovel.png"
},
{
"id": "comrademao",
"name": "Comrade Mao",
"site": "https://comrademao.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/comrademao.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/comrademao/icon.png"
},
{
"id": "cratenovel",
"name": "CrateNovel[madara]",
"site": "https://cratenovel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/CrateNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/cratenovel.png"
},
{
"id": "daonovel",
"name": "DaoNovel[madara]",
"site": "https://daonovel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/DaoNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/daonovel.png"
},
{
"id": "DDL.com",
"name": "Divine Dao Library",
"site": "https://www.divinedaolibrary.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/divinedaolibrary.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/divinedaolibrary/icon.png"
},
{
"id": "earlynovel",
"name": "Early Novel",
"site": "https://earlynovel.net/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/earlynovel.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/latestnovel.png"
},
{
"id": "fanTLS",
"name": "Fans Translations[madara]",
"site": "https://fanstranslations.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/FansTranslations[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/fanstranslations.png"
},
{
"id": "freenovel.me",
"name": "FreeNovelMe[madara]",
"site": "https://freenovel.me/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/FreeNovelMe[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/freenovelme.png"
},
{
"id": "ftest",
"name": "Filter Test",
"site": "https://noblemtl.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/filterTests.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/noblemtl/icon.png"
},
{
"id": "FWN.com",
"name": "Web NOVEL",
"site": "https://freewebnovel.com",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/freewebnovel.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/freewebnovel/icon.png"
},
{
"id": "guavaread",
"name": "Guavaread[madara]",
"site": "https://guavaread.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/Guavaread[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/guavaread.png"
},
{
"id": "lnheaven",
"name": "LightNovelHeaven[madara]",
"site": "https://lightnovelheaven.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/LightNovelHeaven[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/lightnovelheaven.png"
},
{
"id": "Ltnovel.com",
"name": "Ltnovel[readwn]",
"site": "https://www.ltnovel.com",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/Ltnovel[readwn].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/readwn/icons/ltnovel.png"
},
{
"id": "lunarletters",
"name": "LunarLetters[madara]",
"site": "https://www.lunarletters.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/LunarLetters[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/lunarletters.png"
},
{
"id": "mostnovel",
"name": "MostNovel[madara]",
"site": "https://mostnovel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/MostNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/mostnovel.png"
},
{
"id": "mtl-novel",
"name": "MTL-Novel[madara]",
"site": "https://mtl-novel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/MTLNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/mtl-novel.png"
},
{
"id": "mtlnovel.club",
"name": "MTLNovel.Club[madara]",
"site": "https://mtlnovel.club/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/MTLNovelClub[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/mtlnovel.club.png"
},
{
"id": "mysticalmerries",
"name": "MysticalSeries[madara]",
"site": "https://mysticalmerries.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/MysticalSeries[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/mysticalseries.png"
},
{
"id": "neosekaiTLS",
"name": "NeoSekai Translations[madara]",
"site": "https://www.neosekaitranslations.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/NeoSekaiTranslations[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/neosekaitranslations.png"
},
{
"id": "noblemtl",
"name": "NobleMTL",
"site": "https://noblemtl.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/nobleMTL.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/noblemtl/icon.png"
},
{
"id": "nocturneTLS",
"name": "Nocturne Translations[madara]",
"site": "https://nocturnetls.net/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/NocturneTranslations[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/nocturnetranslations.png"
},
{
"id": "noobchanTL",
"name": "Noobchan Translation[madara]",
"site": "https://noobchan.xyz/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/NoobchanTranslation[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/noobchantranslation.png"
},
{
"id": "novelmultiverse",
"name": "NovelMultiverse[madara]",
"site": "https://www.novelmultiverse.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/NovelMultiverse[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/novelmultiverse.png"
},
{
"id": "novelr18",
"name": "NovelR18[madara]",
"site": "https://novelr18.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/NovelR18[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/novelr18.png"
},
{
"id": "novelroom",
"name": "Novelroom.net[madara]",
"site": "https://novelroom.net/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/Novelroomnet[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/novelroom.net.png"
},
{
"id": "novelstic",
"name": "Novelstic[madara]",
"site": "https://novelstic.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/Novelstic[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/novelstic.png"
},
{
"id": "novelTL",
"name": "NovelTranslate[madara]",
"site": "https://noveltranslate.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/NovelTranslate[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/noveltranslate.png"
},
{
"id": "onlymtl",
"name": "OnlyMTL[madara]",
"site": "https://www.onlymtl.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/OnlyMTL[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/onlymtl.png"
},
{
"id": "pandamtl",
"name": "PandaMTL",
"site": "https://pandamtl.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/pandaMTL.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/en/wordpress/icon.png"
},
{
"id": "readwebnovels",
"name": "ReadWebNovels[madara]",
"site": "https://readwebnovels.net/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/ReadWebNovels[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/readwebnovels.png"
},
{
"id": "sleeptTLS",
"name": "SleepyTranslations[madara]",
"site": "https://sleepytranslations.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/SleepyTranslations[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/sleepytranslations.png"
},
{
"id": "sonicmtl",
"name": "SonicMTL[madara]",
"site": "https://www.sonicmtl.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/SonicMTL[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/sonicmtl.png"
},
{
"id": "sugarbbscan",
"name": "Sugar Babies[madara]",
"site": "https://sugarbbscan.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/SugarBabies[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/sugarbabies.png"
},
{
"id": "sweetEscapeTL",
"name": "Sweet Escape Translations[madara]",
"site": "https://sweetescapetranslations.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/SweetEscapeTranslations[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/sweetescapetranslations.png"
},
{
"id": "webnovelover",
"name": "WebNovelLover[madara]",
"site": "https://www.webnovelover.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/WebNovelLover[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/webnovellover.png"
},
{
"id": "wuxiacity",
"name": "Wuxiacity[readwn]",
"site": "https://www.wuxiacity.com",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/Wuxiacity[readwn].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/readwn/icons/wuxiacity.png"
},
{
"id": "wuxiap",
"name": "Wuxiap[readwn]",
"site": "https://www.wuxiap.com",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/Wuxiap[readwn].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/readwn/icons/wuxiap.png"
},
{
"id": "wuxiaworld.site",
"name": "WuxiaWorld.Site[madara]",
"site": "https://wuxiaworld.site/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/WuxiaWorldSite[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/wuxiaworld.site.png"
},
{
"id": "zetroTL",
"name": "Zetro Translation[madara]",
"site": "https://zetrotranslation.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/ZetroTranslation[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/zetrotranslation.png"
},
{
"id": "zinnovel",
"name": "ZinnNovel[madara]",
"site": "https://zinnovel.com/",
"lang": "English",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/english/ZinnNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/zinnnovel.png"
}
],
"français, française": [
{
"id": "chireads.com",
"name": "Chireads",
"site": "https://chireads.com",
"lang": "français, française",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/french/chireads.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/fr/chireads/icon.png"
},
{
"id": "lightnovelfr",
"name": "Ligh Novel FR[wpmangastream]",
"site": "https://lightnovelfr.com/",
"lang": "français, française",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/french/LighNovelFR[wpmangastream].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/wpmangastream/icons/lightnovelfr.png"
},
{
"id": "NDG.com",
"name": "NovelDeGlace",
"site": "https://noveldeglace.com/",
"lang": "français, française",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/french/noveldeglace.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/fr/noveldeglace/icon.png"
}
],
"Bahasa Indonesia": [
{
"id": "meionovel",
"name": "MeioNovel[madara]",
"site": "https://meionovel.id/",
"lang": "Bahasa Indonesia",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/indonesian/MeioNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/meionovel.png"
},
{
"id": "morenovel",
"name": "MoreNovel[madara]",
"site": "https://morenovel.net/",
"lang": "Bahasa Indonesia",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/indonesian/MoreNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/morenovel.png"
},
{
"id": "wbnovel",
"name": "WBNovel[madara]",
"site": "https://wbnovel.com/",
"lang": "Bahasa Indonesia",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/indonesian/WBNovel[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/wbnovel.png"
}
],
"Português": [
{
"id": "lightnovelbrasil",
"name": "Light Novel Brasil",
"site": "https://lightnovelbrasil.com/",
"lang": "Português",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/portuguese/lightnovelbrasil.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/wpmangastream/icons/lightnovelbrasil.png"
}
],
"русский язык": [
{
"id": "AT",
"name": "Автор Тудей",
"site": "https://author.today",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/authortoday.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/authortoday/icon.png"
},
{
"id": "bookhamster",
"name": "Bookhamster[ifreedom]",
"site": "https://bookhamster.ru",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/Bookhamster[ifreedom].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/ifreedom/icons/bookhamster.png"
},
{
"id": "bookriver",
"name": "Bookriver",
"site": "https://bookriver.ru",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/bookriver.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/bookriver/icon.png"
},
{
"id": "erolate",
"name": "Erolate[rulate]",
"site": "https://erolate.com",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/Erolate[rulate].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/rulate/icons/erolate.png"
},
{
"id": "ficbook",
"name": "ficbook",
"site": "https://ficbook.net",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/ficbook.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/ficbook/icon.png"
},
{
"id": "freedlit.space",
"name": "LitSpace",
"site": "https://freedlit.space",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/LitSpace.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/freedlit/icon.png"
},
{
"id": "ifreedom",
"name": "Свободный Мир Ранобэ[ifreedom]",
"site": "https://ifreedom.su",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/СвободныйМирРанобэ[ifreedom].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/ifreedom/icons/ifreedom.png"
},
{
"id": "jaomix.ru",
"name": "Jaomix",
"site": "https://jaomix.ru",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/jaomix.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/jaomix/icon.png"
},
{
"id": "ReN",
"name": "Renovels",
"site": "https://renovels.org",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/renovels.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/renovels/icon.png"
},
{
"id": "RLIB",
"name": "RanobeLib",
"site": "https://ranobelib.me",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/ranobelib.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/ranobelib/icon.png"
},
{
"id": "RNBH.org",
"name": "RanobeHub",
"site": "https://ranobehub.org/",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/ranobehub.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/ranobehub/icon.png"
},
{
"id": "RNRF",
"name": "РанобэРФ",
"site": "https://ранобэ.рф",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/ranoberf.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/ranoberf/icon.png"
},
{
"id": "TL",
"name": "NovelTL",
"site": "https://novel.tl",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/novelTL.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ru/noveltl/icon.png"
},
{
"id": "tl.rulate",
"name": "Rulate[rulate]",
"site": "https://tl.rulate.ru",
"lang": "русский язык",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/russian/Rulate[rulate].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/rulate/icons/rulate.png"
}
],
"español, castellano": [
{
"id": "tunovelaligera",
"name": "TuNovelaLigera",
"site": "https://tunovelaligera.com/",
"lang": "español, castellano",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/spanish/tunovelaligera.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/es/tunovelaligera/icon.png"
}
],
"Türkçe": [
{
"id": "lshnovel",
"name": "Liebe Schnee Hiver Novel",
"site": "https://lshnovel.com/",
"lang": "Türkçe",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/turkish/lshnovel.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/wpmangastream/icons/lshnovel.png"
},
{
"id": "turkcelightnovels",
"name": "TurkceLightNovels[madara]",
"site": "https://turkcelightnovels.com/",
"lang": "Türkçe",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/turkish/TurkceLightNovels[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/turkcelightnovels.png"
},
{
"id": "webnoveloku",
"name": "WebNovelOku [madara]",
"site": "https://www.webnoveloku.com/",
"lang": "Türkçe",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/turkish/WebNovelOku[madara].js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/multisrc/madara/icons/webnoveloku.png"
}
],
"Україна": [
{
"id": "smakolykytl",
"name": "Смаколики",
"site": "https://smakolykytl.site/",
"lang": "Україна",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/ukraine/smakolykytl.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/ua/smakolykytl/icon.png"
}
],
"Tiếng Việt": [
{
"id": "ln.hako",
"name": "Hako",
"site": "https://ln.hako.vn",
"lang": "Tiếng Việt",
"version": "1.0.0",
"url": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/.js/plugins/vietnamese/LNHako.js",
"iconUrl": "https://raw.githubusercontent.com/K1ngfish3r/lnreader-sources/plugins/icons/src/vi/hakolightnovel/icon.png"
}
]
}
File diff suppressed because one or more lines are too long
+302
View File
@@ -0,0 +1,302 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var filterInputs_1 = require("@libs/filterInputs");
var isAbsoluteUrl_1 = require("@libs/isAbsoluteUrl");
var AllNovelFullPlugin = /** @class */ (function () {
function AllNovelFullPlugin() {
this.id = "anf.net";
this.name = "AllNovelFull";
this.icon = "src/en/allnovelfull/icon.png";
this.site = "https://allnovelfull.net";
this.version = "1.0.0";
this.userAgent = "";
this.filters = {
order: {
value: "/most-popular",
label: "Order by",
options: [
{ label: "Latest Release", value: "/latest-release-novel" },
{ label: "Hot Novel", value: "/hot-novel" },
{ label: "Completed Novel", value: "/completed-novel" },
{ label: "Most Popular", value: "/most-popular" },
],
type: filterInputs_1.FilterTypes.Picker,
},
genres: {
value: "",
label: "Genre",
options: [
{ label: "None", value: "" },
{ label: "Shounen", value: "/genre/Shounen" },
{ label: "Harem", value: "/genre/Harem" },
{ label: "Comedy", value: "/genre/Comedy" },
{ label: "Martial Arts", value: "/genre/Martial+Arts" },
{ label: "School Life", value: "/genre/School+Life" },
{ label: "Mystery", value: "/genre/Mystery" },
{ label: "Shoujo", value: "/genre/Shoujo" },
{ label: "Romance", value: "/genre/Romance" },
{ label: "Sci-fi", value: "/genre/Sci-fi" },
{ label: "Gender Bender", value: "/genre/Gender+Bender" },
{ label: "Mature", value: "/genre/Mature" },
{ label: "Fantasy", value: "/genre/Fantasy" },
{ label: "Horror", value: "/genre/Horror" },
{ label: "Drama", value: "/genre/Drama" },
{ label: "Tragedy", value: "/genre/Tragedy" },
{ label: "Supernatural", value: "/genre/Supernatural" },
{ label: "Ecchi", value: "/genre/Ecchi" },
{ label: "Xuanhuan", value: "/genre/Xuanhuan" },
{ label: "Adventure", value: "/genre/Adventure" },
{ label: "Action", value: "/genre/Action" },
{ label: "Psychological", value: "/genre/Psychological" },
{ label: "Xianxia", value: "/genre/Xianxia" },
{ label: "Wuxia", value: "/genre/Wuxia" },
{ label: "Historical", value: "/genre/Historical" },
{ label: "Slice of Life", value: "/genre/Slice+of+Life" },
{ label: "Seinen", value: "/genre/Seinen" },
{ label: "Lolicon", value: "/genre/Lolicon" },
{ label: "Adult", value: "/genre/Adult" },
{ label: "Josei", value: "/genre/Josei" },
{ label: "Sports", value: "/genre/Sports" },
{ label: "Smut", value: "/genre/Smut" },
{ label: "Mecha", value: "/genre/Mecha" },
{ label: "Yaoi", value: "/genre/Yaoi" },
{ label: "Shounen Ai", value: "/genre/Shounen+Ai" },
{ label: "Magical Realism", value: "/genre/Magical+Realism" },
{ label: "Video Games", value: "/genre/Video+Games" },
],
type: filterInputs_1.FilterTypes.Picker,
},
};
}
AllNovelFullPlugin.prototype.parseNovels = function (loadedCheerio) {
var _this = this;
var novels = [];
loadedCheerio(".col-truyen-main .list-truyen .row").each(function (i, el) {
var novelName = loadedCheerio(el)
.find("h3.truyen-title > a")
.text();
var novelCover = loadedCheerio(el).find("img.cover").attr("src");
var novelUrl = loadedCheerio(el).find("h3.truyen-title > a").attr("href");
if (!novelUrl)
return;
if (novelUrl && !(0, isAbsoluteUrl_1.isUrlAbsolute)(novelUrl)) {
novelUrl = _this.site + novelUrl;
}
if (novelCover && !(0, isAbsoluteUrl_1.isUrlAbsolute)(novelCover)) {
novelCover = _this.site + novelCover;
}
var novel = {
url: novelUrl,
name: novelName,
cover: novelCover,
};
novels.push(novel);
});
return novels;
};
;
AllNovelFullPlugin.prototype.popularNovels = function (pageNo, _a) {
var filters = _a.filters;
return __awaiter(this, void 0, void 0, function () {
var link, headers, body, loadedCheerio;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
link = this.site;
if (filters.genres.value.length)
link += filters.genres.value;
else
link += filters.order.value;
link += "?page=".concat(pageNo);
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
return result.text();
})];
case 1:
body = _b.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
AllNovelFullPlugin.prototype.parseNovelAndChapters = function (novelUrl) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio, novel, novelId, getChapters, _a;
var _this = this;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
url = novelUrl;
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _b.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _b.sent();
loadedCheerio = (0, cheerio_1.load)(body);
novel = {
url: url,
chapters: [],
};
novel.name = loadedCheerio(".book > img").attr("alt");
novel.cover = this.site + loadedCheerio(".book > img").attr("src");
novel.summary = loadedCheerio(".desc-text").text().trim();
loadedCheerio(".info > div").each(function (i, el) {
var detailName = loadedCheerio(el).find("h3").text();
var detail = loadedCheerio(el)
.find('a')
.map(function (a, ex) { return loadedCheerio(ex).text(); })
.toArray()
.join(', ');
switch (detailName) {
case 'Author:':
novel.author = detail;
break;
case 'Status:':
novel.status = detail;
break;
case 'Genre:':
novel.genres = detail;
break;
}
});
novelId = loadedCheerio("#rating").attr("data-novel-id");
getChapters = function (id) { return __awaiter(_this, void 0, void 0, function () {
var chaptersUrl, data, chapters, chapter;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
chaptersUrl = this.site + "/ajax/chapter-option?novelId=" + id;
return [4 /*yield*/, (0, fetch_1.fetchApi)(chaptersUrl, { headers: headers })];
case 1:
data = _a.sent();
return [4 /*yield*/, data.text()];
case 2:
chapters = _a.sent();
loadedCheerio = (0, cheerio_1.load)(chapters);
chapter = [];
loadedCheerio("select > option").each(function (i, el) {
var chapterName = loadedCheerio(el).text();
var releaseDate = null;
var cUrl = loadedCheerio(el).attr("value");
var chapterUrl = _this.site + cUrl;
if (!cUrl)
return;
chapter.push({
name: chapterName,
releaseTime: releaseDate,
url: chapterUrl,
});
});
return [2 /*return*/, chapter];
}
});
}); };
if (!novelId) return [3 /*break*/, 4];
_a = novel;
return [4 /*yield*/, getChapters(novelId)];
case 3:
_a.chapters = _b.sent();
_b.label = 4;
case 4: return [2 /*return*/, novel];
}
});
});
};
;
AllNovelFullPlugin.prototype.parseChapter = function (chapterUrl) {
return __awaiter(this, void 0, void 0, function () {
var headers, result, body, loadedCheerio, chapterText;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
chapterText = loadedCheerio("#chapter-content").html() || "";
return [2 /*return*/, chapterText];
}
});
});
};
;
AllNovelFullPlugin.prototype.searchNovels = function (searchTerm, pageNo) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
url = "".concat(this.site, "/search?keyword=").concat(searchTerm, "&page=").concat(pageNo);
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
;
AllNovelFullPlugin.prototype.fetchImage = function (url) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, (0, fetch_1.fetchFile)(url)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return AllNovelFullPlugin;
}());
exports.default = new AllNovelFullPlugin();
+225
View File
@@ -0,0 +1,225 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var filterInputs_1 = require("@libs/filterInputs");
var parseMadaraDate_1 = require("@libs/parseMadaraDate");
var ComradeMaoPlugin = /** @class */ (function () {
function ComradeMaoPlugin() {
this.id = "comrademao";
this.name = "Comrade Mao";
this.site = "https://comrademao.com/";
this.version = "1.0.0";
this.icon = "src/en/comrademao/icon.png";
this.userAgent = "";
this.filters = {
category: {
value: "",
label: "Type",
options: [
{ label: "None", value: "" },
{ label: "Chinese", value: "/mtype/chinese/" },
{ label: "Japanese", value: "/mtype/japanese/" },
{ label: "Korean", value: "/mtype/korean/" },
{ label: "Manhua", value: "/mtype/manhua/" },
],
type: filterInputs_1.FilterTypes.Picker,
},
};
}
ComradeMaoPlugin.prototype.parseNovels = function (loadedCheerio) {
var novels = [];
loadedCheerio(".listupd")
.find("div.bs")
.each(function () {
var novelName = loadedCheerio(this).find(".tt").text().trim();
var novelCover = loadedCheerio(this).find("img").attr("src");
var novelUrl = loadedCheerio(this).find("a").attr("href");
if (!novelUrl)
return;
var novel = {
name: novelName,
cover: novelCover,
url: novelUrl,
};
novels.push(novel);
});
return novels;
};
ComradeMaoPlugin.prototype.popularNovels = function (pageNo, _a) {
var filters = _a.filters;
return __awaiter(this, void 0, void 0, function () {
var link, headers, body, loadedCheerio;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
link = this.site;
link += filters.category.value;
link += "page/" + pageNo + "/?post_type=novel";
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
return result.text();
})];
case 1:
body = _b.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
ComradeMaoPlugin.prototype.parseNovelAndChapters = function (novelUrl) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio, novel, chapter;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
url = novelUrl;
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
novel = {
url: url,
chapters: [],
};
novel.name = loadedCheerio(".entry-title").text().trim();
novel.cover = loadedCheerio("div.thumbook > div > img").attr("src");
loadedCheerio(".infox .wd-full").each(function (i, el) {
var detailName = loadedCheerio(el).find("b").text();
var detail = loadedCheerio(el).find('span').text();
switch (detailName) {
case 'Publisher: ':
novel.author = detail.trim();
break;
case 'Status: ':
novel.status = detail.trim();
break;
case 'Genres:':
novel.genres = detail.trim().replace(/ , /g, ',');
break;
case 'Description: ':
novel.summary = detail.trim();
break;
}
});
chapter = [];
loadedCheerio("#chapterlist")
.find("li")
.each(function () {
var releaseDate = (0, parseMadaraDate_1.parseMadaraDate)(loadedCheerio(this).find(".chapterdate").text());
var chapterName = loadedCheerio(this)
.find(".chapternum")
.text();
var chapterUrl = loadedCheerio(this).find("a").attr("href");
if (!chapterUrl)
return;
chapter.push({
name: chapterName,
url: chapterUrl,
releaseTime: releaseDate,
});
});
novel.chapters = chapter.reverse();
return [2 /*return*/, novel];
}
});
});
};
;
ComradeMaoPlugin.prototype.parseChapter = function (chapterUrl) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var headers, result, body, loadedCheerio, chapterText;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
case 1:
result = _b.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _b.sent();
loadedCheerio = (0, cheerio_1.load)(body);
chapterText = ((_a = loadedCheerio("#chaptercontent").html()) === null || _a === void 0 ? void 0 : _a.trim()) || "";
return [2 /*return*/, chapterText];
}
});
});
};
;
ComradeMaoPlugin.prototype.searchNovels = function (searchTerm, pageNo) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
url = "".concat(this.site, "page/").concat(pageNo, "/?s=").concat(searchTerm, "&post_type=novel");
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
;
ComradeMaoPlugin.prototype.fetchImage = function (url) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, (0, fetch_1.fetchFile)(url)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return ComradeMaoPlugin;
}());
exports.default = new ComradeMaoPlugin();
+207
View File
@@ -0,0 +1,207 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var defaultCover_1 = require("@libs/defaultCover");
var DDLPlugin = /** @class */ (function () {
function DDLPlugin() {
this.id = "DDL.com";
this.name = "Divine Dao Library";
this.site = "https://www.divinedaolibrary.com/";
this.version = "1.0.0";
this.icon = "src/en/divinedaolibrary/icon.png";
this.userAgent = "";
}
DDLPlugin.prototype.parseNovels = function (loadedCheerio, searchTerm) {
var novels = [];
loadedCheerio("#main")
.find("li")
.each(function () {
var novelName = loadedCheerio(this).find("a").text();
var novelCover = defaultCover_1.defaultCover;
var novelUrl = loadedCheerio(this).find(" a").attr("href");
if (!novelUrl)
return;
var novel = {
name: novelName,
cover: novelCover,
url: novelUrl,
};
novels.push(novel);
});
if (searchTerm) {
novels = novels.filter(function (novel) {
return novel.name.toLowerCase().includes(searchTerm.toLowerCase());
});
}
return novels;
};
;
DDLPlugin.prototype.popularNovels = function (pageNo, _a) {
var filters = _a.filters;
return __awaiter(this, void 0, void 0, function () {
var link, headers, body, loadedCheerio;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
link = this.site + "novels";
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
return result.text();
})];
case 1:
body = _b.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
DDLPlugin.prototype.parseNovelAndChapters = function (novelUrl) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio, novel, chapter;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
url = novelUrl;
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
novel = {
url: url,
chapters: [],
};
novel.name = loadedCheerio("h1.entry-title").text().trim();
novel.cover =
loadedCheerio(".entry-content").find("img").attr("data-ezsrc") ||
defaultCover_1.defaultCover;
novel.summary = loadedCheerio("#main > article > div > p:nth-child(6)")
.text()
.trim();
novel.author = loadedCheerio("#main > article > div > h3:nth-child(2)")
.text()
.replace(/Author:/g, "")
.trim();
chapter = [];
loadedCheerio("#main")
.find("li > span > a")
.each(function () {
var chapterName = loadedCheerio(this).text().trim();
var releaseDate = null;
var chapterUrl = loadedCheerio(this).attr("href");
if (!chapterUrl)
return;
chapter.push({
name: chapterName,
releaseTime: releaseDate,
url: chapterUrl,
});
});
novel.chapters = chapter;
return [2 /*return*/, novel];
}
});
});
};
;
DDLPlugin.prototype.parseChapter = function (chapterUrl) {
return __awaiter(this, void 0, void 0, function () {
var headers, result, body, loadedCheerio, chapterName, chapterText;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
chapterName = loadedCheerio(".entry-title").text().trim();
chapterText = loadedCheerio(".entry-content").html();
if (!chapterText) {
chapterText = loadedCheerio(".page-header").html();
}
chapterText = "<p><h1>".concat(chapterName, "</h1></p>") + chapterText;
return [2 /*return*/, chapterText];
}
});
});
};
;
DDLPlugin.prototype.searchNovels = function (searchTerm, pageNo) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
url = this.site + "novels";
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio, searchTerm)];
}
});
});
};
;
DDLPlugin.prototype.fetchImage = function (url) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, (0, fetch_1.fetchFile)(url)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return DDLPlugin;
}());
exports.default = new DDLPlugin();
+318
View File
@@ -0,0 +1,318 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var filterInputs_1 = require("@libs/filterInputs");
var showToast_1 = require("@libs/showToast");
var EarlyNovelPlugin = /** @class */ (function () {
function EarlyNovelPlugin() {
this.id = "earlynovel";
this.name = "Early Novel";
this.version = "1.0.0";
this.icon = "multisrc/madara/icons/latestnovel.png";
this.site = "https://earlynovel.net/";
this.userAgent = "";
this.filters = {
order: {
value: "/most-popular",
label: "Order by",
options: [
{ label: "Latest Release", value: "/latest-release-novel" },
{ label: "Hot Novel", value: "/hot-novel" },
{ label: "Completed Novel", value: "/completed-novel" },
{ label: "Most Popular", value: "/most-popular" },
],
type: filterInputs_1.FilterTypes.Picker,
},
genres: {
value: "",
label: "Genre",
options: [
{ label: "None", value: "" },
{ label: "Action", value: "/genre/action-1" },
{ label: "Adult", value: "/genre/adult-2" },
{ label: "Adventure", value: "/genre/adventure-3" },
{ label: "Comedy", value: "/genre/comedy-4" },
{ label: "Drama", value: "/genre/drama-5" },
{ label: "Ecchi", value: "/genre/ecchi-6" },
{ label: "Fantasy", value: "/genre/fantasy-7" },
{ label: "Gender Bender", value: "/genre/gender-bender-8" },
{ label: "Harem", value: "/genre/harem-9" },
{ label: "Historical", value: "/genre/historical-10" },
{ label: "Horror", value: "/genre/horror-11" },
{ label: "Josei", value: "/genre/josei-12" },
{ label: "Martial Arts", value: "/genre/martial-arts-13" },
{ label: "Mature", value: "/genre/mature-14" },
{ label: "Mecha", value: "/genre/mecha-15" },
{ label: "Mystery", value: "/genre/mystery-16" },
{ label: "Psychological", value: "/genre/psychological-17" },
{ label: "Romance", value: "/genre/romance-18" },
{ label: "School Life", value: "/genre/school-life-19" },
{ label: "Sci-fi", value: "/genre/sci-fi-20" },
{ label: "Seinen", value: "/genre/seinen-21" },
{ label: "Shoujo", value: "/genre/shoujo-22" },
{ label: "Shoujo Ai", value: "/genre/shoujo-ai-23" },
{ label: "Shounen", value: "/genre/shounen-24" },
{ label: "Shounen Ai", value: "/genre/shounen-ai-25" },
{ label: "Slice of Life", value: "/genre/slice-of-life-26" },
{ label: "Smut", value: "/genre/smut-27" },
{ label: "Sports", value: "/genre/sports-28" },
{ label: "Supernatural", value: "/genre/supernatural-29" },
{ label: "Tragedy", value: "/genre/tragedy-30" },
{ label: "Wuxia", value: "/genre/wuxia-31" },
{ label: "Xianxia", value: "/genre/xianxia-32" },
{ label: "Xuanhuan", value: "/genre/xuanhuan-33" },
{ label: "Yaoi", value: "/genre/yaoi-34" },
{ label: "Yuri", value: "/genre/yuri-35" },
{ label: "Video Games", value: "/genre/video-games-36" },
{ label: "Magical Realism", value: "/genre/magical-realism-37" },
],
type: filterInputs_1.FilterTypes.Picker,
},
};
}
EarlyNovelPlugin.prototype.parseNovels = function (loadedCheerio) {
var _this = this;
var novels = [];
loadedCheerio(".col-truyen-main > .list-truyen > .row").each(function (i, el) {
var nUrl = loadedCheerio(el).find("h3.truyen-title > a").attr("href");
var novelUrl = _this.site + nUrl;
var novelName = loadedCheerio(el)
.find("h3.truyen-title > a")
.text();
var novelCover = loadedCheerio(el).find("img.cover").attr("src");
console.log(novelCover);
if (!nUrl)
return;
novels.push({
url: novelUrl,
name: novelName,
cover: novelCover,
});
});
return novels;
};
;
EarlyNovelPlugin.prototype.popularNovels = function (pageNo, _a) {
var filters = _a.filters;
return __awaiter(this, void 0, void 0, function () {
var link, headers, body, loadedCheerio;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
link = this.site;
if (filters.genres.value.length)
link += filters.genres.value;
else
link += filters.order.value;
link += "?page=".concat(pageNo);
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
return result.text();
})];
case 1:
body = _b.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
EarlyNovelPlugin.prototype.parseNovelAndChapters = function (novelUrl) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio, novel, delay, lastPageStr, lastPage, getChapters, _b;
var _this = this;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
(0, showToast_1.showToast)("Early Novel may take 20-30 seconds");
url = novelUrl;
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _c.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _c.sent();
loadedCheerio = (0, cheerio_1.load)(body);
novel = {
url: url,
chapters: [],
};
novel.name = loadedCheerio(".book > img").attr("alt");
novel.cover = loadedCheerio(".book > img").attr("src");
novel.summary = loadedCheerio(".desc-text").text().trim();
loadedCheerio(".info > div > h3").each(function () {
var detailName = loadedCheerio(this).text();
var detail = loadedCheerio(this)
.siblings()
.map(function (i, el) { return loadedCheerio(el).text(); })
.toArray()
.join(",");
switch (detailName) {
case "Author:":
novel.author = detail;
break;
case "Status:":
novel.status = detail;
break;
case "Genre:":
novel.genres = detail;
break;
}
});
delay = function (ms) { return new Promise(function (res) { return setTimeout(res, ms); }); };
lastPageStr = (_a = loadedCheerio('a:contains("Last ")')
.attr("title")) === null || _a === void 0 ? void 0 : _a.match(/(\d+)/g);
lastPage = Number((lastPageStr === null || lastPageStr === void 0 ? void 0 : lastPageStr[1]) || "0");
getChapters = function () { return __awaiter(_this, void 0, void 0, function () {
var chapter, i, chaptersUrl, data, chapters;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
chapter = [];
i = 1;
_a.label = 1;
case 1:
if (!(i <= lastPage)) return [3 /*break*/, 6];
chaptersUrl = "".concat(novelUrl, "?page=").concat(i);
return [4 /*yield*/, (0, fetch_1.fetchApi)(chaptersUrl, { headers: headers })];
case 2:
data = _a.sent();
return [4 /*yield*/, data.text()];
case 3:
chapters = _a.sent();
loadedCheerio = (0, cheerio_1.load)(chapters);
loadedCheerio("ul.list-chapter > li").each(function (i, el) {
var _a;
var chapterName = loadedCheerio(el)
.find(".chapter-text")
.text()
.trim();
var releaseDate = null;
var cUrl = (_a = loadedCheerio(el)
.find("a")
.attr("href")) === null || _a === void 0 ? void 0 : _a.slice(1);
if (!cUrl)
return;
var chapterUrl = _this.site + cUrl;
chapter.push({
name: chapterName,
releaseTime: releaseDate,
url: chapterUrl,
});
});
return [4 /*yield*/, delay(1000)];
case 4:
_a.sent();
_a.label = 5;
case 5:
i++;
return [3 /*break*/, 1];
case 6: return [2 /*return*/, chapter];
}
});
}); };
_b = novel;
return [4 /*yield*/, getChapters()];
case 3:
_b.chapters = _c.sent();
return [2 /*return*/, novel];
}
});
});
};
;
EarlyNovelPlugin.prototype.parseChapter = function (chapterUrl) {
return __awaiter(this, void 0, void 0, function () {
var headers, result, body, loadedCheerio, chapterText;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
chapterText = loadedCheerio("#chapter-c").html() || "";
return [2 /*return*/, chapterText];
}
});
});
};
;
EarlyNovelPlugin.prototype.searchNovels = function (searchTerm, pageNo) {
return __awaiter(this, void 0, void 0, function () {
var url, headers, result, body, loadedCheerio;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
url = "".concat(this.site, "search?keyword=").concat(searchTerm);
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
case 1:
result = _a.sent();
return [4 /*yield*/, result.text()];
case 2:
body = _a.sent();
loadedCheerio = (0, cheerio_1.load)(body);
return [2 /*return*/, this.parseNovels(loadedCheerio)];
}
});
});
};
;
EarlyNovelPlugin.prototype.fetchImage = function (url) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, (0, fetch_1.fetchFile)(url)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return EarlyNovelPlugin;
}());
exports.default = new EarlyNovelPlugin();
+2 -2
View File
@@ -132,9 +132,9 @@ var TuNovelaLigera = /** @class */ (function () {
switch (_b.label) { switch (_b.label) {
case 0: case 0:
link = "".concat(this.site); link = "".concat(this.site);
link += filters.genres ? "genero/" + filters.genres : "novelas"; link += filters.genres.value ? "genero/" + filters.genres.value : "novelas";
link += "/page/".concat(pageNo); link += "/page/".concat(pageNo);
link += filters.order; link += filters.order.value;
headers = new Headers(); headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers })]; return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers })];
case 1: case 1:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 436 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Some files were not shown because too many files have changed in this diff Show More