Skip to content

Commit

Permalink
PixivComics : change salt for pages request
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Sep 13, 2024
1 parent ac6af54 commit 8fcc43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/engine/websites/PixivComics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class extends DecoratableMangaScraper {

public override async FetchPages(chapter: Chapter): Promise<Page[]> {
const timestamp = new Date().toISOString().replace(/\.\d+Z$/, 'Z');
const plaintext = new TextEncoder().encode(timestamp + '4yX5JnooikMsznkIF2Pc1zDCoMmKJdJj27HPrSyEVzgmepcghvumFihiv0LAK0Se');
const plaintext = new TextEncoder().encode(timestamp + '1P-7eSTKnyxRrsxXrvKcng4L68ju8RvuP38OhGAE-gE');
const hash = Buffer.from(await crypto.subtle.digest('SHA-256', plaintext)).toString('hex');
const uri = new URL(`episodes/${chapter.Identifier}/read_v4`, this.apiURL);
const request = new Request(uri.href, {
Expand Down

0 comments on commit 8fcc43f

Please sign in to comment.