mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
add function: import high quantity image from douban
This commit is contained in:
parent
022b1e347f
commit
c9dd998d64
@ -46,7 +46,7 @@ esbuild.build({
|
||||
watch: !prod,
|
||||
target: 'es2016',
|
||||
logLevel: "info",
|
||||
sourcemap: prod ? false : 'inline',
|
||||
sourcemap: prod ? false : true,
|
||||
treeShaking: true,
|
||||
outfile: 'main.js',
|
||||
// minify: true
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-douban-plugin",
|
||||
"name": "Douban",
|
||||
"version": "1.7.7",
|
||||
"version": "1.7.8",
|
||||
"minAppVersion": "0.12.0",
|
||||
"description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .",
|
||||
"author": "Wanxp",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian-douban-plugin",
|
||||
"version": "1.7.7",
|
||||
"version": "1.7.8",
|
||||
"description": "This is a plugin for Obsidian (https://obsidian.md) that can import data from Douban (https://www.douban.com/).",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -48,7 +48,7 @@ createTime: {{currentDate}} {{currentTime}}
|
||||
desc: {{desc}}
|
||||
---
|
||||
|
||||

|
||||

|
||||
|
||||
{{menu}}
|
||||
`,
|
||||
@ -71,7 +71,7 @@ createTime: {{currentDate}} {{currentTime}}
|
||||
desc: {{desc}}
|
||||
---
|
||||
|
||||

|
||||

|
||||
`,
|
||||
noteTemplateFileContent: `---
|
||||
doubanId: {{id}}
|
||||
@ -191,7 +191,7 @@ collectionDate: {{myCollectionDate}}
|
||||
desc: {{desc}}
|
||||
---
|
||||
|
||||

|
||||

|
||||
|
||||
Comment:
|
||||
---
|
||||
@ -221,7 +221,7 @@ collectionDate: {{myCollectionDate}}
|
||||
desc: {{desc}}
|
||||
---
|
||||
|
||||

|
||||

|
||||
|
||||
Comment:
|
||||
---
|
||||
|
||||
@ -461,7 +461,7 @@ export default abstract class DoubanAbstractLoadHandler<T extends DoubanSubject>
|
||||
if (context.settings.cacheHighQuantityImage && context.userComponent.isLogin()) {
|
||||
try {
|
||||
const fileNameSpilt = filename.split('.');
|
||||
const highImage = `https://img9.doubanio.com/view/photo/raw/public/${fileNameSpilt.first()}.jpg`
|
||||
const highImage = `https://img9.doubanio.com/view/photo/l/public/${fileNameSpilt.first()}.jpg`
|
||||
const highFilename = fileNameSpilt.first() + '.jpg';
|
||||
const {success, filepath} = await context.netFileHandler.downloadFile(highImage, folder, highFilename, context, false);
|
||||
if (success) {
|
||||
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
'121102': `如果为空, 笔记将会会使用默认模板`,
|
||||
|
||||
'120101': `电影模板文件`,
|
||||
'120102': `设置选择电影后导入的文本内容模板文件. `,
|
||||
'120102': `导入电影所使用的模板, 请输入并选择对应的文件路径`,
|
||||
'120103': `支持以下参数名称 :`,
|
||||
'120104': `{{id}}, {{title}}, {{type}}, {{score}}, {{image}},`,
|
||||
'120105': `{{url}}, {{desc}}, {{datePublished}}, {{genre}}, `,
|
||||
@ -134,7 +134,7 @@ export default {
|
||||
'120107': ` {{actor}}`,
|
||||
|
||||
'120201': `书籍模板文件`,
|
||||
'120202': `选择书籍后导入内容的模板文件. `,
|
||||
'120202': `导入书籍所使用的模板, 请输入并选择对应的文件路径`,
|
||||
'120203': `支持以下参数名称 :`,
|
||||
'120204': `{{id}}, {{title}}, {{type}}, {{score}}, {{image}},`,
|
||||
'120205': `{{url}}, {{desc}}, {{datePublished}}, {{publisher}}`,
|
||||
@ -143,7 +143,7 @@ export default {
|
||||
'120208': `{{series}}, {{binding}}, {{menu}}`,
|
||||
|
||||
'120301': `音乐模板文件`,
|
||||
'120302': `选择音乐后导入内容的模板文件. `,
|
||||
'120302': `导入音乐所使用的模板, 请输入并选择对应的文件路径`,
|
||||
'120303': `支持以下参数名称 :`,
|
||||
'120304': `{{id}}, {{title}}, {{type}}, {{image}},`,
|
||||
'120305': `{{url}}, {{desc}}, {{datePublished}}`,
|
||||
@ -151,7 +151,7 @@ export default {
|
||||
'120307': `{{barcode}}, {{records}}`,
|
||||
|
||||
'120401': `日记模板文件`,
|
||||
'120402': `设置选择日记后导入内容的模板文件. `,
|
||||
'120402': `导入日记所使用的模板, 请输入并选择对应的文件路径`,
|
||||
'120403': `支持以下参数名称 :`,
|
||||
'120404': `{{id}}, {{title}}, {{type}}, {{image}},`,
|
||||
'120405': `{{url}}, {{desc}}, {{datePublished}}`,
|
||||
@ -159,7 +159,7 @@ export default {
|
||||
'120407': `{{timePublished}}`,
|
||||
|
||||
'121301': `游戏模板文件`,
|
||||
'121302': `选择游戏后导入内容的模板文件. `,
|
||||
'121302': `导入游戏所使用的模板, 请输入并选择对应的文件路径`,
|
||||
'121303': `支持以下参数名称 :`,
|
||||
'121304': `{{id}}, {{title}}, {{type}}, {{score}}, {{image}},`,
|
||||
'121305': `{{url}}, {{desc}}, {{publisher}}, {{datePublished}}`,
|
||||
@ -167,7 +167,7 @@ export default {
|
||||
|
||||
|
||||
'121801': `电视剧模板文件`,
|
||||
'121802': `选择电视剧后导入内容的模板文件. `,
|
||||
'121802': `导入电视剧所使用的模板, 请输入并选择对应的文件路径`,
|
||||
|
||||
|
||||
'120501': `日期格式`,
|
||||
|
||||
@ -22,5 +22,6 @@
|
||||
"1.7.4": "0.12.0",
|
||||
"1.7.5": "0.12.0",
|
||||
"1.7.6": "0.12.0",
|
||||
"1.7.7": "0.12.0"
|
||||
"1.7.7": "0.12.0",
|
||||
"1.7.8": "0.12.0"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user