Skip to content

Commit

Permalink
Merge branch 'miru-project:main' into patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
OshekharO authored Sep 21, 2023
2 parents 7f00f3b + aa9ac29 commit 07a6fb9
Show file tree
Hide file tree
Showing 12 changed files with 1,152 additions and 100 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,40 @@ Miru extensions repository | [Miru App Download](https://github.com/miru-project
| Name | Package | Version | Author | Language | NSFW | Source |
| ---- | ---- | --- | --- | --- | --- | --- |
| AniGoGo | ani.gogo | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/ani.gogo.js) |
| Aniwatch | ani.watch | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/ani.watch.js) |
| Aniwatch | ani.watch | v0.0.2 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/ani.watch.js) |
| AnimeFlv | anime.flv | v0.0.1 | (koikiss-dev) | es | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/anime.flv.js) |
| BestLightNovel | best.light.novel | v0.0.1 | anishi7 | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/best.light.novel.js) |
| 咕咕影视 | cc.cooing | v0.0.3 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/cc.cooing.js) |
| 动漫之家 | com.dmzj.www | v0.0.2 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/com.dmzj.www.js) |
| 欧乐影院 | com.olevod.www | v0.0.1 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/com.olevod.www.js) |
| Comick | comick.app | v0.0.1 | OshekharO | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/comick.app.js) |
| Comick | comick.app | v0.0.2 | OshekharO | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/comick.app.js) |
| Comrademao | comrademao | v0.0.3 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/comrademao.js) |
| 7喜影院 | dev.0n0.miru.7xi | v0.0.5 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/dev.0n0.miru.7xi.js) |
| GoGoAnime | gogo.anime | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/gogo.anime.js) |
| HentaiDexy | hentaidexy.net | v0.0.1 | OshekharO | en | true | [Source Code](https://github.com/miru-project/repo/blob/main/repo/hentaidexy.net.js) |
| IsekaiScan | isekaiscan.to | v0.0.2 | bethro | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/isekaiscan.to.js) |
| Kissasian | kissasian.fm | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/kissasian.fm.js) |
| Kisskh | kisskh.co | v0.0.1 | OshekharO | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/kisskh.co.js) |
| 拷贝漫画 | mangacopy.comic | v0.0.1 | Monster | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/mangacopy.comic.js) |
| マンガクロス | mangacross.jp | v0.0.1 | OshekharO | jp | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/mangacross.jp.js) |
| MangaDex | mangadex.org | v0.0.1 | bethro | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/mangadex.org.js) |
| Enime | moe.enime | v0.0.5 | MiaoMint | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/moe.enime.js) |
| 轻小说文库 | moe.wol.wenku8 | v0.0.1 | NPGamma | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/moe.wol.wenku8.js) |
| Mtlnation | mtlnation.com | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/mtlnation.com.js) |
| TYS.mx | mx.yts | v0.0.5 | MiaoMint | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/mx.yts.js) |
| ReadLN | readlightnovels | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/readlightnovels.js) |
| 免费小说网 | ren.0u0.miru.mfxs | v0.0.1 | MiaoMint | zh-cn | true | [Source Code](https://github.com/miru-project/repo/blob/main/repo/ren.0u0.miru.mfxs.js) |
| 樱花动漫 | sakura | v0.0.1 | Monster | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/sakura.js) |
| SimplyHentai | simplyhentai.com | v0.0.1 | OshekharO | all | true | [Source Code](https://github.com/miru-project/repo/blob/main/repo/simplyhentai.com.js) |
| 好看的1号 | top.lkp2.www | v0.0.1 | zj | zh-cn | true | [Source Code](https://github.com/miru-project/repo/blob/main/repo/top.lkp2.www.js) |
| NetTruyen | truyen.net | v0.0.2 | OshekharO | vi | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/truyen.net.js) |
| Turkish123 | turkish123 | v0.0.1 | OshekharO | tr | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/turkish123.js) |
| Unimay | unimay.media | v0.0.1 | CakesTwix | uk | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/unimay.media.js) |
| viện | vn.tangthuvien | v0.0.1 | Moleys | vi | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/vn.tangthuvien.js) |
| 影视集合 | vod.api.json.collection | v0.0.2 | Horis | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/vod.api.json.collection.js) |
| 八戒影视 | vod.api.xml.bajie | v0.0.1 | Horis | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/vod.api.xml.bajie.js) |
| 风车动漫 | windmill | v0.0.1 | Monster | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/windmill.js) |
| Wnmtl | wnmtl.org | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/wnmtl.org.js) |
| 好看的7号 | xyz.thrj66.www | v0.0.1 | zj | zh-cn | true | [Source Code](https://github.com/miru-project/repo/blob/main/repo/xyz.thrj66.www.js) |
| 好看的2号 | xyz.xdtv2 | v0.0.1 | zj | zh-cn | true | [Source Code](https://github.com/miru-project/repo/blob/main/repo/xyz.xdtv2.js) |
| ZeroScans | zeroscans.com | v0.0.1 | OshekharO | en | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/zeroscans.com.js) |
106 changes: 103 additions & 3 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"package": "ani.watch",
"type": "bangumi",
"url": "ani.watch.js",
"version": "v0.0.1",
"webSite": "https://api-aniwatch.onrender.com/anime"
"version": "v0.0.2",
"webSite": "https://api.consumet.org/anime/zoro"
},
{
"author": "(koikiss-dev)",
Expand Down Expand Up @@ -95,7 +95,7 @@
"package": "comick.app",
"type": "manga",
"url": "comick.app.js",
"version": "v0.0.1",
"version": "v0.0.2",
"webSite": "https://api.comick.app"
},
{
Expand Down Expand Up @@ -159,6 +159,19 @@
"version": "v0.0.2",
"webSite": "https://m.isekaiscan.to"
},
{
"author": "OshekharO",
"icon": "https://kissasian.fm/img/icon/logo-mobile.png",
"lang": "en",
"license": "MIT",
"name": "Kissasian",
"nsfw": "false",
"package": "kissasian.fm",
"type": "bangumi",
"url": "kissasian.fm.js",
"version": "v0.0.1",
"webSite": "https://kissasian.fm"
},
{
"author": "OshekharO",
"icon": "https://kisskh.co/assets/icons/icon-192x192.png",
Expand Down Expand Up @@ -195,6 +208,18 @@
"version": "v0.0.1",
"webSite": "https://mangacross.jp"
},
{
"author": "bethro",
"icon": "https://mangadex.org/img/avatar.png",
"lang": "all",
"license": "MIT",
"name": "MangaDex",
"package": "mangadex.org",
"type": "manga",
"url": "mangadex.org.js",
"version": "v0.0.1",
"webSite": "https://api.mangadex.org"
},
{
"author": "MiaoMint",
"description": "https://github.com/Enime-Project/api.enime.moe",
Expand All @@ -208,6 +233,18 @@
"version": "v0.0.5",
"webSite": "https://api.enime.moe"
},
{
"author": "NPGamma",
"icon": "https://www.wenku8.net/favicon.ico",
"lang": "zh-cn",
"license": "AGPL-3.0",
"name": "轻小说文库",
"package": "moe.wol.wenku8",
"type": "fikushon",
"url": "moe.wol.wenku8.js",
"version": "v0.0.1",
"webSite": "https://www.wenku8.net"
},
{
"author": "OshekharO",
"icon": "https://tlimg.b-cdn.net/wp-content/uploads/2023/07/MTLNATION-icon.png",
Expand All @@ -234,6 +271,18 @@
"version": "v0.0.5",
"webSite": "https://yts.mx/"
},
{
"author": "OshekharO",
"icon": "https://readlightnovels.net/wp-content/uploads/2020/01/rln-logo-ret.png",
"lang": "en",
"license": "MIT",
"name": "ReadLN",
"package": "readlightnovels",
"type": "fikushon",
"url": "readlightnovels.js",
"version": "v0.0.1",
"webSite": "https://api.consumet.org/light-novels/readlightnovels"
},
{
"author": "MiaoMint",
"lang": "zh-cn",
Expand All @@ -258,6 +307,19 @@
"version": "v0.0.1",
"webSite": "https://www.vdm8.com"
},
{
"author": "OshekharO",
"icon": "https://www.simply-hentai.com/favicon.ico",
"lang": "all",
"license": "MIT",
"name": "SimplyHentai",
"nsfw": "true",
"package": "simplyhentai.com",
"type": "manga",
"url": "simplyhentai.com.js",
"version": "v0.0.1",
"webSite": "https://api.simply-hentai.com/v3"
},
{
"author": "zj",
"icon": "https://www.lkp2.top/template/muban8/favicon.ico",
Expand All @@ -283,6 +345,19 @@
"version": "v0.0.2",
"webSite": "https://comics-api.vercel.app"
},
{
"author": "OshekharO",
"icon": "https://turkish123.com/wp-content/uploads/favicon.png",
"lang": "tr",
"license": "MIT",
"name": "Turkish123",
"nsfw": "false",
"package": "turkish123",
"type": "bangumi",
"url": "turkish123.js",
"version": "v0.0.1",
"webSite": "https://turkish123.com"
},
{
"author": "CakesTwix",
"icon": "https://www.google.com/s2/favicons?domain=unimay.media\u0026sz=256",
Expand Down Expand Up @@ -342,6 +417,19 @@
"version": "v0.0.1",
"webSite": "https://www.dm530w.org"
},
{
"author": "OshekharO",
"icon": "https://wnmtl.com/logo.png",
"lang": "en",
"license": "MIT",
"name": "Wnmtl",
"nsfw": "false",
"package": "wnmtl.org",
"type": "fikushon",
"url": "wnmtl.org.js",
"version": "v0.0.1",
"webSite": "https://api.mystorywave.com/story-wave-backend/api/v1/content"
},
{
"author": "zj",
"icon": "https://xdtv2.xyz/template/xdtv/static/favicon.ico",
Expand All @@ -367,5 +455,17 @@
"url": "xyz.xdtv2.js",
"version": "v0.0.1",
"webSite": "https://xdtv2.xyz/"
},
{
"author": "OshekharO",
"icon": "https://zeroscans.com/favicon.ico",
"lang": "en",
"license": "MIT",
"name": "ZeroScans",
"package": "zeroscans.com",
"type": "manga",
"url": "zeroscans.com.js",
"version": "v0.0.1",
"webSite": "https://zeroscans.com"
}
]
67 changes: 39 additions & 28 deletions repo/ani.watch.js
Original file line number Diff line number Diff line change
@@ -1,75 +1,86 @@
// ==MiruExtension==
// @name Aniwatch
// @version v0.0.1
// @version v0.0.2
// @author OshekharO
// @lang en
// @license MIT
// @icon https://aniwatch.to/images/android-chrome-512x512.png
// @package ani.watch
// @type bangumi
// @webSite https://api-aniwatch.onrender.com/anime
// @webSite https://api.consumet.org/anime/zoro
// ==/MiruExtension==

export default class extends Extension {
async req(url) {
return this.request(url, {
headers: {
"Miru-Url": await this.getSetting("aniwatch"),
"Miru-Url": await this.getSetting("zoro"),
},
});
}

async load() {
this.registerSetting({
title: "Aniwatch API",
key: "aniwatch",
title: "Zoro API",
key: "zoro",
type: "input",
description: "Aniwatch Api Url",
defaultValue: "https://api-aniwatch.onrender.com/anime",
description: "Zoro Api Url",
defaultValue: "https://api.consumet.org/anime/zoro",
});
}

async latest() {
const res = await this.req(`/home`);
return res.spotlightAnimes.map((item) => ({
title: item.name,
url: item.id,
cover: item.poster,
}));
const res = await this.request("", {
headers: {
"Miru-Url": "https://aniwatch.to/most-popular",
},
});
const bsxList = await this.querySelectorAll(res, "div.flw-item");
const novel = [];
for (const element of bsxList) {
const html = await element.content;
const url = await this.getAttributeText(html, "a", "href");
const title = await this.querySelector(html, "h3").text;
const cover = await this.querySelector(html, "img").getAttributeText("data-src");
//console.log(title+cover+url)
novel.push({
title,
url,
cover,
});
}
return novel;
}

async detail(url) {
const res = await this.req(`/info?id=${url}`);
const epRes = await this.req(`/episodes/${url}`);
return {
title: res.anime.info.name,
cover: res.anime.info.poster,
desc: res.anime.info.description,
title: res.title,
cover: res.image,
desc: res.description,
episodes: [
{
title: "Ep",
urls: epRes.episodes.map((item) => ({
name: `Episode ${item.number}`,
url: item.episodeId,
title: "Directory",
urls: res.episodes.map((item) => ({
name: item.title,
url: item.id,
})),
},
],
};
}

async search(kw, page) {
const res = await this.req(`/search?q=${kw}&page=${page}`);
return res.animes.map((item) => ({
title: item.name,
const res = await this.req(`/${kw}?page=${page}`);
return res.results.map((item) => ({
title: item.title,
url: item.id,
cover: item.poster,
cover: item.image,
}));
}

async watch(url) {
const res = await this.req(
`/episode-srcs?id=${url}&server=vidstreaming&category=sub`
);
const res = await this.req(`/watch?episodeId=${url}&server=vidcloud`);
return {
type: "hls",
url: res.sources[0].url,
Expand Down
Loading

0 comments on commit 07a6fb9

Please sign in to comment.