mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
fix cookie login failed
This commit is contained in:
parent
881f9f36f6
commit
3def97db92
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-douban-plugin",
|
||||
"name": "Douban",
|
||||
"version": "1.8.9",
|
||||
"version": "1.9.0",
|
||||
"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.8.9",
|
||||
"version": "1.9.0",
|
||||
"description": "This is a plugin for Obsidian (https://obsidian.md) that can import data from Douban (https://www.douban.com/).",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -208,7 +208,11 @@ export default class DoubanPlugin extends Plugin {
|
||||
this.userComponent = new UserComponent(this.settingsManager);
|
||||
this.netFileHandler = new NetFileHandler(this.fileHandler);
|
||||
if (this.userComponent.needLogin()) {
|
||||
await this.userComponent.loginByCookie();
|
||||
try {
|
||||
await this.userComponent.loginByCookie();
|
||||
}catch (e) {
|
||||
log.debug(i18nHelper.getMessage('100101'));
|
||||
}
|
||||
}
|
||||
|
||||
this.addSettingTab(new DoubanSettingTab(this.app, this));
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
"1.8.6": "0.12.0",
|
||||
"1.8.7": "0.12.0",
|
||||
"1.8.8": "0.12.0",
|
||||
"1.8.9": "0.12.0"
|
||||
"1.8.9": "0.12.0",
|
||||
"1.9.0": "0.12.0"
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user