From 3842b87e5f57bd78ae76d584325ab0ac3e459106 Mon Sep 17 00:00:00 2001 From: MiaoMint <44718819+MiaoMint@users.noreply.github.com> Date: Sun, 24 Sep 2023 14:16:20 +0800 Subject: [PATCH 1/8] fix(me.mikanani.js): source site & 404 error (#47) --- repo/{me.mikanan.js => me.mikanani.js} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename repo/{me.mikanan.js => me.mikanani.js} (98%) diff --git a/repo/me.mikanan.js b/repo/me.mikanani.js similarity index 98% rename from repo/me.mikanan.js rename to repo/me.mikanani.js index 5f40e59..bd0f291 100644 --- a/repo/me.mikanan.js +++ b/repo/me.mikanani.js @@ -1,6 +1,6 @@ // ==MiruExtension== // @name Mikanani -// @version v0.0.1 +// @version v0.0.2 // @author MiaoMint // @lang zh-cn // @license MIT @@ -23,7 +23,7 @@ export default class extends Extension { defaultValue: "https://mikanani.me", options: { "https://mikanani.me": "https://mikanani.me", - "https://mikanani.tv": "https://mikanani.tv", + "https://mikanime.tv": "https://mikanime.tv", }, }); } From 5e7a998488de35bd316f0e889b4e8a1f28088d4e Mon Sep 17 00:00:00 2001 From: Automated Publisher Date: Sun, 24 Sep 2023 06:16:41 +0000 Subject: [PATCH 2/8] Automated publish: Sun Sep 24 06:16:41 UTC 2023 3842b87e5f57bd78ae76d584325ab0ac3e459106 --- README.md | 2 +- index.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a8ea3d..0175641 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Miru extensions repository | [Miru App Download](https://github.com/miru-project | 拷贝漫画 | 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) | -| Mikanani | me.mikanani | v0.0.1 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/me.mikanan.js) | +| Mikanani | me.mikanani | v0.0.2 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/me.mikanani.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) | diff --git a/index.json b/index.json index 5111006..11731ad 100644 --- a/index.json +++ b/index.json @@ -241,8 +241,8 @@ "name": "Mikanani", "package": "me.mikanani", "type": "bangumi", - "url": "me.mikanan.js", - "version": "v0.0.1", + "url": "me.mikanani.js", + "version": "v0.0.2", "webSite": "https://mikanani.me" }, { From 473ba912ce74473d807843396c7e6005ac2cfb7e Mon Sep 17 00:00:00 2001 From: MiaoMint <44718819+MiaoMint@users.noreply.github.com> Date: Mon, 25 Sep 2023 00:12:32 +0800 Subject: [PATCH 3/8] pref: me.mikanani.js (#48) --- repo/me.mikanani.js | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/repo/me.mikanani.js b/repo/me.mikanani.js index bd0f291..3b576da 100644 --- a/repo/me.mikanani.js +++ b/repo/me.mikanani.js @@ -1,6 +1,6 @@ // ==MiruExtension== // @name Mikanani -// @version v0.0.2 +// @version v0.0.3 // @author MiaoMint // @lang zh-cn // @license MIT @@ -152,28 +152,28 @@ export default class extends Extension { }); } - const episodeGrups = []; - - for (const item of subtitleGrups) { - const res = await this.req( - `/Home/ExpandEpisodeTable?bangumiId=${bangumiId}&subtitleGroupId=${item.subtitleId}&take=999999` - ); - const trs = await this.querySelectorAll(res, "tbody tr"); - const episodes = []; - for (const item of trs) { - const html = item.content; - const name = await this.querySelector(html, "a").text; - const url = html.match(/\/Download\/.*\.torrent/)[0]; - episodes.push({ - name, - url, - }); - } - episodeGrups.push({ - title: item.name, - urls: episodes, - }); - } + const episodeGrups = await Promise.all( + subtitleGrups.map(async (item) => { + const res = await this.req( + `/Home/ExpandEpisodeTable?bangumiId=${bangumiId}&subtitleGroupId=${item.subtitleId}&take=999999` + ); + const trs = await this.querySelectorAll(res, "tbody tr"); + const episodes = []; + for (const item of trs) { + const html = item.content; + const name = await this.querySelector(html, "a").text; + const url = html.match(/\/Download\/.*\.torrent/)[0]; + episodes.push({ + name, + url, + }); + } + return { + title: item.name, + urls: episodes, + }; + }) + ); return { title, @@ -185,9 +185,9 @@ export default class extends Extension { async search(kw, page, filter) { if (!filter) { - return await this.latest() + return await this.latest(); } - return await this.getData(filter.year, filter.season) + return await this.getData(filter.year, filter.season); } async watch(url) { From 4c81858174806f239442b7796f2ce7d7bbe1996c Mon Sep 17 00:00:00 2001 From: Automated Publisher Date: Sun, 24 Sep 2023 16:12:52 +0000 Subject: [PATCH 4/8] Automated publish: Sun Sep 24 16:12:52 UTC 2023 473ba912ce74473d807843396c7e6005ac2cfb7e --- README.md | 2 +- index.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0175641..d7e7d9b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Miru extensions repository | [Miru App Download](https://github.com/miru-project | 拷贝漫画 | 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) | -| Mikanani | me.mikanani | v0.0.2 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/me.mikanani.js) | +| Mikanani | me.mikanani | v0.0.3 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/me.mikanani.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) | diff --git a/index.json b/index.json index 11731ad..10c7192 100644 --- a/index.json +++ b/index.json @@ -242,7 +242,7 @@ "package": "me.mikanani", "type": "bangumi", "url": "me.mikanani.js", - "version": "v0.0.2", + "version": "v0.0.3", "webSite": "https://mikanani.me" }, { From 887f1c4caec617aedc1c73ded8398c26ac79661c Mon Sep 17 00:00:00 2001 From: MiaoMint <44718819+MiaoMint@users.noreply.github.com> Date: Mon, 25 Sep 2023 01:15:59 +0800 Subject: [PATCH 5/8] Upload rip.acg.js (#49) --- repo/rip.acg.js | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 repo/rip.acg.js diff --git a/repo/rip.acg.js b/repo/rip.acg.js new file mode 100644 index 0000000..06c0736 --- /dev/null +++ b/repo/rip.acg.js @@ -0,0 +1,81 @@ +// ==MiruExtension== +// @name ACG.RIP +// @version v0.0.1 +// @author MiaoMint +// @lang zh-cn +// @license MIT +// @icon http://r.photo.store.qq.com/psb?/V12tx9ch2GA3dz/FqLQBHE23P.c*XKPM4RI*6*aL0mdnoww*2zSjghMKn8!/r/dPIAAAAAAAAA +// @package rip.acg +// @type bangumi +// @webSite https://acg.rip +// ==/MiruExtension== + +export default class extends Extension { + async createFilter(filter) {} + + async getFullUrl(url) { + return `https://acg.rip${url}`; + } + + async getItemList(html) { + const trs = await this.querySelectorAll(html, "tbody tr"); + const items = []; + for (const item of trs) { + const html = item.content; + const a = this.querySelector(html, ".title a"); + const title = await a.text; + console.log(a.content); + const url = await this.getAttributeText( + a.content, + "a:nth-child(1)", + "href" + ); + items.push({ + title, + url, + }); + } + return items; + } + + async latest(page) { + const res = await this.request(`/1/page/${page}`); + return await this.getItemList(res); + } + + async detail(url) { + const res = await this.request(url); + const title = ( + await this.querySelector(res, ".panel-default .panel-heading").text + ).trim(); + const desc = await this.querySelector(res, ".post-content").text; + return { + title, + desc, + episodes: [ + { + title: "种子", + urls: [ + { + name: "在线观看", + url: await this.getAttributeText(res, ".panel-body .btn", "href"), + }, + ], + }, + ], + }; + } + + async search(kw, page, filter) { + const res = await this.request(`/page/${page}?term=${kw}`); + return this.getItemList(res); + } + + async watch(url) { + return { + type: "torrent", + url: await this.getFullUrl(url), + }; + } + } + \ No newline at end of file From 630bc2ba2b733bdf698ba4207306b27ec40a7228 Mon Sep 17 00:00:00 2001 From: Automated Publisher Date: Sun, 24 Sep 2023 17:16:22 +0000 Subject: [PATCH 6/8] Automated publish: Sun Sep 24 17:16:22 UTC 2023 887f1c4caec617aedc1c73ded8398c26ac79661c --- README.md | 1 + index.json | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index d7e7d9b..82a61df 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Miru extensions repository | [Miru App Download](https://github.com/miru-project | 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) | +| ACG.RIP | rip.acg | v0.0.1 | MiaoMint | zh-cn | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/rip.acg.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) | diff --git a/index.json b/index.json index 10c7192..78aad8c 100644 --- a/index.json +++ b/index.json @@ -320,6 +320,18 @@ "version": "v0.0.1", "webSite": "https://www.493d.com/" }, + { + "author": "MiaoMint", + "icon": "http://r.photo.store.qq.com/psb?/V12tx9ch2GA3dz/FqLQBHE23P.c*XKPM4RI*6*aL0mdnoww*2zSjghMKn8!/r/dPIAAAAAAAAA", + "lang": "zh-cn", + "license": "MIT", + "name": "ACG.RIP", + "package": "rip.acg", + "type": "bangumi", + "url": "rip.acg.js", + "version": "v0.0.1", + "webSite": "https://acg.rip" + }, { "author": "Monster", "icon": "https://cdn.yinghuazy.xyz/webjs/zkk7/statics/img/favicon.ico", From b1839a405ba8fef49e805a9daad64826fece16ba Mon Sep 17 00:00:00 2001 From: Saksham Shekher <95137948+OshekharO@users.noreply.github.com> Date: Sun, 24 Sep 2023 10:29:59 -0700 Subject: [PATCH 7/8] Create invidious.io (#18) * Create invidious.io * Add: Audio Tracks * Fix: audio Still getting some tcp error and buffer issue after audio track addition * Now fixed everything Api changed so no more buffer --- repo/invidious.io.js | 80 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 repo/invidious.io.js diff --git a/repo/invidious.io.js b/repo/invidious.io.js new file mode 100644 index 0000000..f67efff --- /dev/null +++ b/repo/invidious.io.js @@ -0,0 +1,80 @@ +// ==MiruExtension== +// @name Invidious +// @version v0.0.1 +// @author OshekharO +// @lang all +// @license MIT +// @icon https://invidious.io/apple-touch-icon.png +// @package invidious.io +// @type bangumi +// @webSite https://invidious.slipfox.xyz/api/v1 +// ==/MiruExtension== + +export default class extends Extension { + async latest() { + const res = await this.request(`/trending`); + + if (!Array.isArray(res)) { + // Handle the case when the response is not an array + return []; + } + + return res.map((item) => ({ + title: item.title || "", + url: item.videoId || "", + cover: item.videoThumbnails?.[0]?.url || "", // Use the first thumbnail's URL if available + })); + } + + async search(kw) { + const res = await this.request(`/search?q=${kw}`); + + return res.map((item) => ({ + title: item.title || "", + url: item.videoId || "", + cover: item.videoThumbnails?.[0]?.url || "", + })); + } + + async detail(url) { + const res = await this.request(`/videos/${url}`); + return { + title: res.title, + cover: res.videoThumbnails?.[0]?.url, + desc: res.description, + episodes: [ + { + title: "Watch", + urls: [ + { + name: res.title, + url: res.videoId, + }, + ], + }, + ], + }; + } + + async watch(url) { + const res = await this.request(`/videos/${url}`); + + const sub = await this.request(`/streams/${url}`, { + headers: { + "Miru-Url": "https://pipedapi.kavin.rocks", + }, + }); + + const subtitles = sub.subtitles.map((item) => ({ + title: item.name, + url: item.url, + language: item.code, + })); + + return { + type: "hls", + url: res.formatStreams?.[2]?.url, + subtitles: subtitles, + }; +} +} From bed018e298c1fb79e482543d2b5c2c8fd79bb43c Mon Sep 17 00:00:00 2001 From: Automated Publisher Date: Sun, 24 Sep 2023 17:30:16 +0000 Subject: [PATCH 8/8] Automated publish: Sun Sep 24 17:30:16 UTC 2023 b1839a405ba8fef49e805a9daad64826fece16ba --- README.md | 1 + index.json | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 82a61df..3e8985b 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Miru extensions repository | [Miru App Download](https://github.com/miru-project | Flixhq | flixhq.to | v0.0.1 | OshekharO | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/flixhq.to.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) | +| Invidious | invidious.io | v0.0.1 | OshekharO | all | false | [Source Code](https://github.com/miru-project/repo/blob/main/repo/invidious.io.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) | diff --git a/index.json b/index.json index 78aad8c..10b94d4 100644 --- a/index.json +++ b/index.json @@ -159,6 +159,18 @@ "version": "v0.0.1", "webSite": "https://backend.hentaidexy.net" }, + { + "author": "OshekharO", + "icon": "https://invidious.io/apple-touch-icon.png", + "lang": "all", + "license": "MIT", + "name": "Invidious", + "package": "invidious.io", + "type": "bangumi", + "url": "invidious.io.js", + "version": "v0.0.1", + "webSite": "https://invidious.slipfox.xyz/api/v1" + }, { "author": "bethro", "icon": "https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_192,h_192/https://m.isekaiscan.to/wp-content/uploads/2023/03/0_20230304_101820_0000-300x300.png",