komf
komf copied to clipboard
fix mangaupdates fields
With the current field names and casing the type filtering doesn't work, also the perPage parameter is ignored. Renamed the relevant fields and serialized the types in SeriesType to have the correct casing, filtering then works as expected.
types => type
perPage => perpage
Before
{"search":"Manga Title","page":1,"perPage":5,"types":["MANGA","MANHWA","MANHUA","ARTBOOK","DOUJINSHI","FILIPINO","INDONESIAN","THAI","VIETNAMESE","MALAYSIAN","OEL","NORDIC","FRENCH","SPANISH"]}
{"search":"Novel Title","page":1,"perPage":5,"types":["NOVEL"]}
After
{"search":"Manga Title","page":1,"perpage":5,"type":["Manga","Manhwa","Manhua","Artbook","Doujinshi","Filipino","Indonesian","Thai","Vietnamese","Malaysian","OEL","Nordic","French","Spanish"]}
{"search":"Novel Title","page":1,"perpage":5,"type":["Novel"]}