Update to 6.0.1 #2
This commit is contained in:
@@ -333,7 +333,7 @@ def getStoryline_amazon(q_title, number, debug):
|
||||
# 删除无效cookies,无论是用户创建还是自动创建,以避免持续故障
|
||||
cookies_filepath and len(cookies_filepath) and Path(cookies_filepath).is_file() and Path(cookies_filepath).unlink(missing_ok=True)
|
||||
# 自动创建的cookies文件放在搜索路径表的末端,最低优先级。有amazon.co.jp帐号的用户可以从浏览器导出cookie放在靠前搜索路径
|
||||
ama_save = Path.home() / ".local/share/avdc/amazon.json"
|
||||
ama_save = Path.home() / ".local/share/mdc/amazon.json"
|
||||
ama_save.parent.mkdir(parents=True, exist_ok=True)
|
||||
ama_save.write_text(json.dumps(session.cookies.get_dict(), sort_keys=True, indent=4), encoding='utf-8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user