Skip to content

Commit

Permalink
source: fix forgotten 'full results' indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Oct 16, 2022
1 parent d928d33 commit 4c02a16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sites/Sankaku/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ export const source: ISource = {
},
},
details: {
fullResults: true,
url: (id: string, md5: string, opts: IUrlDetailsOptions): string => {
const baseUrl = opts.baseUrl
.replace("//chan.", "//capi-v2.")
.replace("//idol.", "//iapi.");
return baseUrl + "/posts/" + id;
},
parse: (src: string): IParsedDetails => {
parse: (src: string): IImage => {
const data = JSON.parse(src);
return buildImageFromJson(data);
},
Expand Down

0 comments on commit 4c02a16

Please sign in to comment.