Force mature to be on in URL params
ci/woodpecker/push/woodpecker Pipeline failed Details

gonna need to add some config for this later but for now im hardcoding it before it gives me an aneurysm
pull/1/head
Drake 1 year ago
parent 1990fbd4b0
commit 18936d7541

@ -37,6 +37,7 @@ export default class Chapter {
const html = await (await this.#session.get("/apiv2/storytext", false, {
params: new URLSearchParams({
id: this.id,
mature: "1",
}),
})).text();

@ -41,6 +41,7 @@ export default class Search {
: this.#opts.query,
limit: this.#opts.limit.toString(),
offset: (pageNum * this.#opts.limit).toString(),
mature: "1",
}),
})).json();

@ -53,6 +53,7 @@ export default class Story {
{
params: new URLSearchParams({
drafts: "0",
mature: "1",
include_deleted: "1",
fields:
"id,title,length,createDate,modifyDate,voteCount,readCount,commentCount,url,promoted,sponsor,language,user,description,cover,highlight_colour,completed,isPaywalled,paidModel,categories,numParts,readingPosition,deleted,dateAdded,lastPublishedPart(createDate),tags,copyright,rating,story_text_url(text),,parts(id,title,voteCount,commentCount,videoId,readCount,photoUrl,modifyDate,length,voted,deleted,text_url(text),dedication,url,wordCount),isAdExempt,tagRankings",

@ -36,6 +36,7 @@ export default class Search {
tags: this.#opts.tags.join(","),
offset: (pageNum * this.#opts.limit).toString(),
limit: this.#opts.limit.toString(),
mature: "1",
}),
})).json();

Loading…
Cancel
Save