mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-06 01:58:48 +08:00
14 lines
463 B
TypeScript
14 lines
463 B
TypeScript
import {AbstractSearchPageFetcher} from "./AbstractSearchPageFetcher";
|
|
import { SupportType } from "src/org/wanxp/constant/Constsant";
|
|
|
|
export class BookPageSearchPageFetcher extends AbstractSearchPageFetcher {
|
|
getUrl(keyword: string, start: number, pageSize: number): string {
|
|
return `https://www.douban.com/j/search?q=${keyword}&start=${start}&cat=1001`;
|
|
}
|
|
support(type: SupportType): boolean {
|
|
return type == SupportType.BOOK;
|
|
}
|
|
|
|
|
|
}
|