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