mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
fix name error
This commit is contained in:
parent
de439d2cdc
commit
ae7c16430d
@ -33,9 +33,9 @@ export default class DoubanMovieLoadHandler extends DoubanAbstractLoadHandler<Do
|
|||||||
const {settings} = context;
|
const {settings} = context;
|
||||||
return beforeContent
|
return beforeContent
|
||||||
.replaceAll("{{originalTitle}}", extract.originalTitle ?? "")
|
.replaceAll("{{originalTitle}}", extract.originalTitle ?? "")
|
||||||
.replaceAll("{{director}}", this.handleArray(extract.director.map(SchemaOrg.getPersonName).map(name => super.getPersonName(name, context)).filter(c => c), context))
|
.replaceAll("{{director}}", this.handleArray(extract.director.map(SchemaOrg.getPersonName).filter(c => c), context))
|
||||||
.replaceAll("{{actor}}", this.handleArray( extract.actor.map(SchemaOrg.getPersonName).filter(c => c), context))
|
.replaceAll("{{actor}}", this.handleArray( extract.actor.map(SchemaOrg.getPersonName).filter(c => c), context))
|
||||||
.replaceAll("{{author}}", this.handleArray(extract.author.map(SchemaOrg.getPersonName).filter(c => c), context))
|
.replaceAll("{{author}}", this.handleArray(extract.author.map(SchemaOrg.getPersonName).map(name => super.getPersonName(name, context)).filter(c => c), context))
|
||||||
.replaceAll("{{aliases}}", this.handleArray(extract.aliases.map(a=>a.replace(TITLE_ALIASES_SPECIAL_CHAR_REG_G, '_')), context))
|
.replaceAll("{{aliases}}", this.handleArray(extract.aliases.map(a=>a.replace(TITLE_ALIASES_SPECIAL_CHAR_REG_G, '_')), context))
|
||||||
.replaceAll("{{country}}", this.handleArray( extract.country, context))
|
.replaceAll("{{country}}", this.handleArray( extract.country, context))
|
||||||
.replaceAll("{{language}}",this.handleArray( extract.language, context))
|
.replaceAll("{{language}}",this.handleArray( extract.language, context))
|
||||||
|
|||||||
@ -28,9 +28,9 @@ export class DoubanTeleplayLoadHandler extends DoubanAbstractLoadHandler<DoubanT
|
|||||||
const {settings} = context;
|
const {settings} = context;
|
||||||
return beforeContent
|
return beforeContent
|
||||||
.replaceAll("{{originalTitle}}", extract.originalTitle ?? "")
|
.replaceAll("{{originalTitle}}", extract.originalTitle ?? "")
|
||||||
.replaceAll("{{director}}", this.handleArray( extract.director.map(SchemaOrg.getPersonName).map(name => super.getPersonName(name, context)).filter(c => c), context))
|
.replaceAll("{{director}}", this.handleArray( extract.director.map(SchemaOrg.getPersonName).filter(c => c), context))
|
||||||
.replaceAll("{{actor}}", this.handleArray( extract.actor.map(SchemaOrg.getPersonName).filter(c => c), context))
|
.replaceAll("{{actor}}", this.handleArray( extract.actor.map(SchemaOrg.getPersonName).filter(c => c), context))
|
||||||
.replaceAll("{{author}}", this.handleArray( extract.author.map(SchemaOrg.getPersonName).filter(c => c), context))
|
.replaceAll("{{author}}", this.handleArray( extract.author.map(SchemaOrg.getPersonName).map(name => super.getPersonName(name, context)).filter(c => c), context))
|
||||||
.replaceAll("{{aliases}}", this.handleArray( extract.aliases.map(a=>a.replace(TITLE_ALIASES_SPECIAL_CHAR_REG_G, '_')), context))
|
.replaceAll("{{aliases}}", this.handleArray( extract.aliases.map(a=>a.replace(TITLE_ALIASES_SPECIAL_CHAR_REG_G, '_')), context))
|
||||||
.replaceAll("{{country}}", this.handleArray( extract.country, context))
|
.replaceAll("{{country}}", this.handleArray( extract.country, context))
|
||||||
.replaceAll("{{language}}", this.handleArray(extract.language, context))
|
.replaceAll("{{language}}", this.handleArray(extract.language, context))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user