mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
31 lines
849 B
TypeScript
31 lines
849 B
TypeScript
import { CheerioAPI } from "cheerio";
|
|
import DoubanAbstractLoadHandler from "./DoubanAbstractLoadHandler";
|
|
import { DoubanPluginSettings } from "src/douban/Douban";
|
|
import DoubanSubject from "../model/DoubanSubject";
|
|
import { i18nHelper } from "src/lang/helper";
|
|
import { log } from "src/utils/Logutil";
|
|
|
|
/**
|
|
* 默认的处理器
|
|
*/
|
|
export default class DoubanOtherLoadHandler extends DoubanAbstractLoadHandler<DoubanSubject> {
|
|
getTemplate(settings: DoubanPluginSettings): string {
|
|
return "";
|
|
}
|
|
parseText(beforeContent:string, extract: DoubanSubject, settings:DoubanPluginSettings): string {
|
|
log.warn(i18nHelper.getMessage('140101'));
|
|
return "";
|
|
}
|
|
support(extract: DoubanSubject): boolean {
|
|
return false;
|
|
}
|
|
parseSubjectFromHtml(data: CheerioAPI): DoubanSubject {
|
|
return undefined;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|