Obsidian 插件:Douban
插件名片
概述
在 Obsidian 使用并导入豆瓣中的 电影/书籍/音乐/电视剧/日记/游戏 甚至是 你标记过的书影音 , 包含你的评分/发布日期/演员表等信息.
原文出处
下面自述文件的来源于 Readme
Readme(翻译)
下面是 obsidian-douban-plugin 插件的自述翻译
Obsidian 豆瓣插件
在 Obsidian 使用并导入豆瓣中的 电影/书籍/音乐/电视剧/日记/游戏 甚至是 你标记过的书影音 , 包含你的评分/发布日期/演员表等信息.
关于当前的插件如果有任何疑问, 缺少想要的导入内容或者想要什么功能, 欢迎提 issues 或加入到开发当中.
如果觉得喜欢或对您有帮助,欢迎一键三连 - 点亮 ⭐Star
- 异常, 问题 & 新的想法
- 阅读其它语言的介绍请点击 English | 简体中文
功能
- 同步个人看过的电影
- 同步个人阅读过的书籍
- 同步个人听过的音乐
- 导入电影
- 导入电视剧
- 导入书籍
- 导入音乐
- 导入日记
- 导入游戏
- 导入个人的评论,评论时间,阅读状态,个人评分
- 支持保存封面至本地
- 支持自定义参数
- 广播
How to use
同步
- Sync personal records of movies, books, games, and music
Sync data from Douban (refer to Using the Timeline Plugin to Build a Reading/Movie Timeline for how to use the Timeline plugin to create a timeline)
搜索
-
Search for data and create notes
-
Search by current file name
-
Search by input text
设置
-
设置案例 1(自定义模板)
-
设置案例 2(其它配置)
支持的字段
(若有缺少想导入的字段, 欢迎提 issues 反馈)
字段 | 电影 | 电视剧 | 书籍 | 音乐 | 日记 | 游戏 | 广播 |
---|---|---|---|---|---|---|---|
id | 豆瓣 ID | 豆瓣 ID | 豆瓣 ID | 豆瓣 ID | 豆瓣 ID | 豆瓣 ID | - |
title | 电影名称 | 电视剧名称 | 书名 | 音乐名 | 日记标题 | 游戏名称 | - |
type | 类型 | 类型 | 类型 | 类型 | 类型 | 类型 | - |
score | 评分 | 评分 | 评分 | 评分 | 评分 | 评分 | - |
image | 封面 | 封面 | 封面 | 封面 | 图片 | 封面 | - |
url | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | 豆瓣网址 | - |
desc | 简介 | 简介 | 内容简介 | 简介 | 简介 | 简介 | - |
publisher | - | - | 出版社 | 出版者 | 发布者 | 发行商 | - |
datePublished | 上映日期 | 上映日期 | 出版年 | 发行时间 | 发布时间 | 发行日期 | - |
yearPublished | 上映年份 | 上映年份 | 出版年份 | 发行年份 | 发布年份 | 发行年份 | - |
genre | 类型 | 类型 | - | 流派 | - | 类型 | - |
currentDate | 今日日期 | 今日日期 | 今日日期 | 今日日期 | 今日日期 | 今日日期 | |
currentTime | 当前时间 | 当前时间 | 当前时间 | 当前时间 | 当前时间 | 当前时间 | |
myTags | 我标记的标签 | 我标记的标签 | 我标记的标签 | 我标记的标签 | - | 我标记的标签 | |
myRating | 我的评分 | 我的评分 | 我的评分 | 我的评分 | - | 我的评分 | |
myState | 状态: 想看/在看/看过 | 状态: 想看/在看/看过 | 状态: 想看/在看/看过 | 状态: 想听/在听/听过 | - | 状态: 想玩/在玩/玩过 | |
myComment | 我的评语 | 我的评语 | 我的评语 | 我的评语 | - | 我的评语 | |
myCollectionDate | 我标记的时间 | 我标记的时间 | 我标记的时间 | 我标记的时间 | - | 我标记的时间 | |
扩展 1 | 导演 | 导演 | 原作者 | 表演者 | 作者 | 别名 | |
扩展 2 | 编剧 | 编剧 | 译者 | 专辑类型 | 作者网址 | 开发商 | |
扩展 3 | 主演 | 主演 | isbn | 介质 | 日记内容 | 平台 | |
扩展 4 | 原作名 | 原作名 | 原作名 | 唱片数 | |||
扩展 5 | 国家 | 国家 | 副标题 | 条形码 | |||
扩展 6 | 语言 | 语言 | 页数 | ||||
扩展 7 | 片长 | 片长 | 丛书 | ||||
扩展 8 | 又名 | 又名 | 目录 | ||||
扩展 9 | IMDb | IMDb | 定价 | ||||
扩展 7 | 集数 | 装帧 | |||||
扩展 8 | 出品方 |
- 注: myTags, myRating, myState, myComment, myCollectionDate 参数均为在插件中登录后可用
How to Install
从 Obsidian 插件中心
- Enter the Obsidian plugin center.
- Search for obsidian-douban.
- Install.
- Enable the plugin.
手动安装
- Download
main.js
,manifest.json
,styles.css
from the Github release page. - Copy the downloaded files to the
/.obsidian/plugins/obsidian-douban
path in your Obsidian document root directory. If the folder does not exist, create it. (Note that the.obsidian
folder may be a hidden folder.) - Enable the current plugin in the Obsidian plugin center.
如何开发调试
- 进入你的 Obsidian 测试文档文件夹下的
/.obsidian/plugins/
- 克隆代码
git clone git@github.com:Wanxp/obsidian-douban.git
- 进入代码文件夹
cd obsidian-douban
- 安装依赖
npm install
- 构建插件
npm run build
- 运行插件
npm run dev
- 进入 Obsidian 插件中心重新加载当前插件
- 享受开发吧
交流社群
免责声明
- Before using this plugin, it is strongly recommended to backup your data in at least one way to prevent any unexpected situations.
- This program does not crawl any content such as books, movies, or music. It is only for technical research purposes. It does not infringe upon the copyright of authors or the official interests of Douban. If there is any infringement, please contact me to delete it.
- This program is for learning and communication purposes only.
- Although every effort is made to avoid it, there may still be possible omissions. Therefore, any losses caused by using the plugin are the responsibility of the user. For the impact of different operations, please refer to the section.
- Using or modifying this plugin is considered as agreeing to the above disclaimer.
影响
注意: 除了在同步书影音数据时勾选 替换同名文档
有可能会修改同路径同文档名的笔记外,其余操作均不会修改已有笔记。
操作 | 条件 | 影响 | 举例 |
---|---|---|---|
导入书影音数据 | 默认条件 | 新建一条名为所选条目的笔记 | 如搜索蝙蝠侠并选中导入,则会创建笔记 《蝙蝠侠》 |
导入书影音数据 | 已有同名笔记 | 无任何影响,提示已经存在同名笔记,不会修改已有笔记 | 如搜索蝙蝠侠并选中导入,但因存在同路径同名称笔记,则会不会创建笔记 |
导入书影音数据 | 配置 笔记名称 值包含路径 | 若没有此路径则会创建对应文件名 | 如搜索蝙蝠侠并选中导入,配置 笔记名称 值为 /data/{{type}}/{{title}} ,则会创建文件夹 data/电影 |
导入书影音数据 | 配置 保存图片附件 值为勾选 | 则会在 附件存放位置 指定位置保存封面图片 | 如搜索蝙蝠侠并选中导入,配置 附件存放位置 值为 assets ,则会在 assets 文件夹中保存封面文件 p462657443.jpg |
同步书影音数据 | 以上所有 | 以上所有 | 以上所有 |
同步书影音数据 | 替换同名文档 值为勾选 | 已经存在 同路径同文档名 ,直接覆盖 | 如已经存在在 data/Movie/蝙蝠侠.md ,配置 笔记名称 值为 /data/{{type}}/{{title}} , 同步书影音记录时勾选 替换同名文档 , 则 data/Movie/蝙蝠侠.md 会被替换成最新 |
Acknowledgements
IDE 支持
反馈交流
其他渠道
版权声明
版权声明:所有 PKMer 文章如果需要转载,请附上原文出处链接。