Miru API V1 uses a class-based inheritance approach. This version is maintained for backward compatibility but V2 is recommended for new extensions.
To implement a V1 extension, you must define a class that extends the base Extension class.
Extension
class MyExtension extends Extension { async load() { // Initialization } async latest(page) { // Return latest items } async search(kw, page, filter) { // Search items } async createFilter(filter) { // Define filters } async detail(url) { // Get details and episodes } async watch(url) { // Get playable content } }
this.webSite
this.name
this.registerSetting()
await this.getSetting()
Same as V2, you can use fetch() or the legacy Miru.request(). Built-in modules like linkedom and crypto-js are available via require().
fetch()
Miru.request()
linkedom
crypto-js
require()
There was an error while loading. Please reload this page.