@@ -19,6 +19,7 @@ export default class Eiyuu {
19
19
private searchElements : string ;
20
20
private useragent : string
21
21
private searchSortings : string ;
22
+ private searchSortingsMoebooruBased : string ;
22
23
private followRedirects : boolean ;
23
24
24
25
/**
@@ -31,6 +32,7 @@ export default class Eiyuu {
31
32
this . followRedirects = followRedirects || defaults . followRedirects ;
32
33
this . searchElements = "table.highlightable" ;
33
34
this . searchSortings = "*&sort=desc&order_by=index_count" ;
35
+ this . searchSortingsMoebooruBased = "*&type=&order=count" ;
34
36
35
37
this . gelbooruURL = c . GELBOORU ;
36
38
this . danbooruURL = c . DANBOORU ;
@@ -143,7 +145,7 @@ export default class Eiyuu {
143
145
public async konachan ( query : string ) : Promise < string [ ] > {
144
146
try {
145
147
const res = await request (
146
- this . konachanURL , `*${ query } ` , "&type=&order=count" ,
148
+ this . konachanURL , `*${ query } ` , this . searchSortingsMoebooruBased ,
147
149
this . useragent , this . followRedirects ) ;
148
150
149
151
const $ = load ( res . body ) ;
@@ -171,7 +173,7 @@ export default class Eiyuu {
171
173
public async lolibooru ( query : string ) : Promise < string [ ] > {
172
174
try {
173
175
const res = await request (
174
- this . lolibooruURL , `*${ query } ` , "*&type=&order=count" ,
176
+ this . lolibooruURL , `*${ query } ` , this . searchSortingsMoebooruBased ,
175
177
this . useragent , this . followRedirects ) ;
176
178
177
179
const $ = load ( res . body ) ;
@@ -334,7 +336,7 @@ export default class Eiyuu {
334
336
public async yandere ( query : string ) : Promise < string [ ] > {
335
337
try {
336
338
const res = await request (
337
- this . yandereURL , `*${ query } ` , "*&type=&order=count" ,
339
+ this . yandereURL , `*${ query } ` , this . searchSortingsMoebooruBased ,
338
340
this . useragent , this . followRedirects ) ;
339
341
340
342
const $ = load ( res . body ) ;
0 commit comments