Skip to content
This repository was archived by the owner on Nov 20, 2021. It is now read-only.

Commit a9b4afa

Browse files
committed
Fix SenManga issue
1 parent ae5b0f4 commit a9b4afa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/SenManga/SenManga.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const BASE = "https://raw.senmanga.com"
1717

1818
export const SenMangaInfo: SourceInfo = {
1919
icon: "icon.png",
20-
version: "1.0.0",
20+
version: "1.0.1",
2121
name: "SenManga",
2222
author: "PythonCoderAS",
2323
authorWebsite: "https://github.com/PythonCoderAS",
@@ -88,8 +88,10 @@ export class SenManga extends Source {
8888
}
8989

9090
private async getPagedResults(url: string, metadata: { page?: number | null, [key: string]: any }){
91-
if (typeof metadata !== "object"){
92-
metadata = {page: metadata}
91+
if (typeof metadata !== "object" && metadata !== null){
92+
metadata = {page: metadata};
93+
} else if (metadata === null){
94+
metadata = {};
9395
}
9496
let page = 1;
9597
if (metadata.page){

0 commit comments

Comments
 (0)