obsidian-douban/src/org/wanxp/douban/data/search/searcher/NoteFirstPageSearchPageFetcher.ts
Wanxp c09f96d3b8 fix #143 #132 #124
1. 增加游戏同步功能
2. 修复自定义参数配置问题
3. 增加搜索默认类型
4. 增加全部搜索为空时的提示
2025-03-11 14:45:14 +08:00

14 lines
483 B
TypeScript

import {AbstractSearchPageFetcher} from "./AbstractSearchPageFetcher";
import { SupportType } from "src/org/wanxp/constant/Constsant";
export class NoteFirstPageSearchPageFetcher extends AbstractSearchPageFetcher {
getUrl(keyword: string, start: number, pageSize: number): string {
return `https://www.douban.com/search?cat=1015&q=${keyword}`;
}
support(type: SupportType, pageNum:number): boolean {
return type == SupportType.note && pageNum == 1;
}
}