This repository was archived by the owner on Nov 20, 2021. It is now read-only.
File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const BASE = "https://catmanga.org"
15
15
16
16
export const CatMangaInfo : SourceInfo = {
17
17
icon : "icon.png" ,
18
- version : "1.2.4 " ,
18
+ version : "1.2.8 " ,
19
19
name : "CatManga" ,
20
20
author : "PythonCoderAS" ,
21
21
authorWebsite : "https://github.com/PythonCoderAS" ,
@@ -101,6 +101,9 @@ export class CatManga extends Source {
101
101
async searchRequest ( query : SearchRequest , metadata : any ) : Promise < PagedResults > {
102
102
// TODO: Wait for search to be implemented on the website.
103
103
const results = ( await this . getWebsiteMangaDirectory ( null ) ) . results ;
104
+ if ( query . title ) {
105
+ query . title = query . title . replace ( / \+ / g, " " ) . trim ( ) ;
106
+ }
104
107
const data : MangaTile [ ] = [ ] ;
105
108
for ( let i = 0 ; i < results . length ; i ++ ) {
106
109
const key = results [ i ] ;
@@ -110,6 +113,7 @@ export class CatManga extends Source {
110
113
}
111
114
}
112
115
}
116
+ console . log ( data . length )
113
117
return createPagedResults ( {
114
118
results : data
115
119
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const BASE = "https://danke.moe"
5
5
6
6
export const DankeFursInfo : SourceInfo = {
7
7
icon : "icon.png" ,
8
- version : "1.0.1 " ,
8
+ version : "1.0.5 " ,
9
9
name : "DankeFurs" ,
10
10
author : "PythonCoderAS" ,
11
11
authorWebsite : "https://github.com/PythonCoderAS" ,
Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ export abstract class GuyaTemplate extends Source {
125
125
126
126
let result = typeof data . data === "string" ? JSON . parse ( data . data ) : data . data
127
127
let query = searchQuery . title ?? ''
128
-
128
+ if ( query ) {
129
+ query = query . replace ( / \+ / g, " " ) . trim ( ) ;
130
+ }
129
131
let filteredResults = Object . keys ( result ) . filter ( ( e ) =>
130
132
e . toLowerCase ( ) . includes ( query . toLowerCase ( ) )
131
133
)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const BASE = "https://mahoushoujobu.com/"
5
5
6
6
export const MahouShoujoBuInfo : SourceInfo = {
7
7
icon : "icon.png" ,
8
- version : "1.0.1 " ,
8
+ version : "1.0.2 " ,
9
9
name : "MahouShoujoBu" ,
10
10
author : "PythonCoderAS" ,
11
11
authorWebsite : "https://github.com/PythonCoderAS" ,
You can’t perform that action at this time.
0 commit comments