Skip to content

Commit

Permalink
PixivComics: change endpoint & update hash algo
Browse files Browse the repository at this point in the history
minor changes
  • Loading branch information
MikeZeDev authored Jul 31, 2024
1 parent 3165b30 commit 0af56f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/mjs/connectors/PixivComics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default class PixivComics extends Connector {

async _getPages(chapter) {
const timestamp = new Date().toISOString().replace(/\.\d+Z$/, 'Z');
const hash = CryptoJS.SHA256(timestamp + 'mAtW1X8SzGS880fsjEXlM73QpS1i4kUMBhyhdaYySk8nWz533nrEunaSplg63fzT').toString(CryptoJS.enc.Hex);
const uri = new URL(`episodes/${chapter.id}/read_v3`, this.apiURL);
const hash = CryptoJS.SHA256(timestamp + '4yX5JnooikMsznkIF2Pc1zDCoMmKJdJj27HPrSyEVzgmepcghvumFihiv0LAK0Se').toString(CryptoJS.enc.Hex);
const uri = new URL(`episodes/${chapter.id}/read_v4`, this.apiURL);
const request = new Request(uri, this.requestOptions);
request.headers.set('x-requested-with', 'pixivcomic');
request.headers.set('x-client-time', timestamp);
Expand Down

0 comments on commit 0af56f8

Please sign in to comment.