mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-05 01:11:16 +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,
|
watch: !prod,
|
||||||
target: 'es2016',
|
target: 'es2016',
|
||||||
logLevel: "info",
|
logLevel: "info",
|
||||||
sourcemap: prod ? false : 'inline',
|
sourcemap: prod ? false : true,
|
||||||
treeShaking: true,
|
treeShaking: true,
|
||||||
outfile: 'main.js',
|
outfile: 'main.js',
|
||||||
// minify: true
|
// minify: true
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-douban-plugin",
|
"id": "obsidian-douban-plugin",
|
||||||
"name": "Douban",
|
"name": "Douban",
|
||||||
"version": "1.7.7",
|
"version": "1.7.8",
|
||||||
"minAppVersion": "0.12.0",
|
"minAppVersion": "0.12.0",
|
||||||
"description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .",
|
"description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .",
|
||||||
"author": "Wanxp",
|
"author": "Wanxp",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-douban-plugin",
|
"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/).",
|
"description": "This is a plugin for Obsidian (https://obsidian.md) that can import data from Douban (https://www.douban.com/).",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -48,7 +48,7 @@ createTime: {{currentDate}} {{currentTime}}
|
|||||||
desc: {{desc}}
|
desc: {{desc}}
|
||||||
---
|
---
|
||||||
|
|
||||||

|

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

|

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

|

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

|

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