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