mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
14 lines
483 B
TypeScript
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;
|
|
}
|
|
|
|
|
|
}
|