File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ https://t.nhentai.net/galleries/1367250/thumb.png
107
107
108
108
### (6) Search
109
109
110
+ \* Some old doujin may have no ` thumbnail.w ` and ` thumbnail.h `
111
+
110
112
``` javascript
111
113
{
112
114
" num_results" : 11706 ,
Original file line number Diff line number Diff line change 2
2
* @Author : Jindai Kirin
3
3
* @Date : 2019-02-18 14:49:30
4
4
* @Last Modified by: Jindai Kirin
5
- * @Last Modified time: 2019-02-24 13:11:04
5
+ * @Last Modified time: 2019-03-25 18:22:02
6
6
*/
7
7
8
8
const Cheerio = require ( 'cheerio' ) ;
@@ -49,7 +49,7 @@ function list(html) {
49
49
title : $this . find ( '.caption' ) . html ( ) ,
50
50
language,
51
51
thumbnail : {
52
- s : $thumb . attr ( 'data-src' ) ,
52
+ s : $thumb . attr ( 'data-src' ) || $thumb . attr ( 'src' ) . replace ( / ^ \/ \/ / , 'https://' ) ,
53
53
w : $thumb . attr ( 'width' ) ,
54
54
h : $thumb . attr ( 'height' )
55
55
}
Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ async function log(promise) {
14
14
//log(api.tag('anal'));
15
15
//log(api.tag('anal',2,'popular'));
16
16
17
- api . g ( 263492 ) . then ( gallery => {
17
+ /* api.g(263492).then(gallery => {
18
18
console.log(gallery.getPages());
19
19
console.log(gallery.getPagesThumbnail());
20
20
console.log(gallery.getCover());
21
21
console.log(gallery.getCoverThumbnail());
22
- } ) ;
22
+ });*/
23
+
24
+ log ( api . search ( '[陸乃家鴨] 司法畑でつかまえて♥' ) ) ;
You can’t perform that action at this time.
0 commit comments