Skip to content

Commit

Permalink
Yurineko: update domain
Browse files Browse the repository at this point in the history
Closes #7724
  • Loading branch information
MikeZeDev authored Feb 4, 2025
1 parent f35fa38 commit 457b87b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/web/mjs/connectors/Yurineko.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default class Yurineko extends Connector {
super.id = 'yurineko';
super.label = 'Yurineko';
this.tags = ['manga', 'hentai', 'vietnamese'];
this.url = 'https://yurineko.net';
this.api = 'https://api.yurineko.net';
this.url = 'https://yurineko.site';
this.api = 'https://api.yurineko.site';
}

async _getMangaFromURI(uri) {
Expand Down Expand Up @@ -47,7 +47,7 @@ export default class Yurineko extends Connector {
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, '#__NEXT_DATA__');
const jsonData = JSON.parse(data[0].text);
return jsonData.props.pageProps.chapterData.url.map( element => this.createConnectorURI({url : element}));
return jsonData.props.pageProps.chapterData.url.map( element => this.createConnectorURI({url : new URL(element, 'https://storage.yurineko.site').href}));
}

async _handleConnectorURI(payload) {
Expand All @@ -59,4 +59,4 @@ export default class Yurineko extends Connector {
this._applyRealMime(data);
return data;
}
}
}

0 comments on commit 457b87b

Please sign in to comment.