mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
add new setting for {{scoreStar}} and {{myRatingStar}}
This commit is contained in:
parent
ba0f75be2a
commit
ba5e6a8ee2
@ -64,11 +64,12 @@
|
||||
(若有缺少想导入的字段, 欢迎提issues反馈)
|
||||
|
||||
| 字段 | 电影 | 电视剧 | 书籍 | 音乐 | 日记 | 游戏 | 人物 |
|
||||
|------------------|-------------------|-------------------|-------------------|---------------|----------------|---------------|-------|
|
||||
|------------------|------------------|-------------------|-------------------|---------------|----------------|---------------|-------|
|
||||
| id | 豆瓣ID | 豆瓣ID | 豆瓣ID | 豆瓣ID | 豆瓣ID | 豆瓣ID | id |
|
||||
| title | 电影名称 | 电视剧名称 | 书名 | 音乐名 | 日记标题 | 游戏名称 | 姓名 |
|
||||
| type | 类型 | 类型 | 类型 | 类型 | 类型 | 类型 | 类型 |
|
||||
| score | 评分 | 评分 | 评分 | 评分 | 评分 | 评分 | |
|
||||
| scoreStar | 评分⭐ | 评分⭐ | 评分⭐ | 评分⭐ | 评分⭐ | 评分⭐ | |
|
||||
| image | 封面 | 封面 | 封面 | 封面 | 图片 | 封面 | 照片 |
|
||||
| imageData.url | 封面url | 封面url | 封面url | 封面url | 封面url | 封面url | 照片url |
|
||||
| url | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 |
|
||||
@ -96,7 +97,7 @@
|
||||
| 扩展7 | | episode:集数 | binding:装帧 | | | | |
|
||||
| 扩展8 | | | producer: 出品方 | | | | |
|
||||
|
||||
- 注: myTags, myRating, myState, myComment, myCollectionDate 参数均为在插件中登录后可用
|
||||
- 注: myTags, myRating, myRatingStar:⭐ , myState, myComment, myCollectionDate 参数均为在插件中登录后可用
|
||||
|
||||
|
||||
## 如何安装
|
||||
@ -129,7 +130,9 @@
|
||||
8. 享受开发吧
|
||||
|
||||
## 交流社群
|
||||
<img src="doc/img/obsidian-douban-qq-qr_code.svg" width="300px"> <img src="doc/img/obsidian-douban-discord-qr_code.svg" width="300px">
|
||||
<img src="doc/img/obsidian-douban-qq-qr_code.svg" width="300px">
|
||||
|
||||
[//]: # (<img src="doc/img/obsidian-douban-discord-qr_code.svg" width="300px"> )
|
||||
|
||||
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ desc: {{desc}}
|
||||
|
||||
# {{title}}
|
||||
<div style="text-align: center;">{{originalTitle}}</div>
|
||||
<div style="text-align: center;">⭐⭐⭐⭐⭐</div>
|
||||
<div style="text-align: center;">{{scoreStar}}</div>
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -31,6 +31,8 @@ export default class DoubanBookLoadHandler extends DoubanAbstractLoadHandler<Dou
|
||||
parseVariable(beforeContent: string, variableMap:Map<string, DataField>, extract: DoubanBookSubject, context: HandleContext, textMode: TemplateTextMode): void {
|
||||
variableMap.set(DoubanBookParameter.author, new DataField(DoubanBookParameter.author,
|
||||
DataValueType.array, extract.author, extract.author.map(this.handleSpecialAuthorName)));
|
||||
variableMap.set(DoubanBookParameter.translator, new DataField(DoubanBookParameter.translator,
|
||||
DataValueType.array, extract.translator, extract.translator.map(this.handleSpecialAuthorName)));
|
||||
}
|
||||
|
||||
support(extract: DoubanSubject): boolean {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user