'update'
This commit is contained in:
@@ -21,6 +21,8 @@ IBOOKS_ANNOTATION_DB = os.path.expanduser('~/Library/Containers/com.apple.iBooks
|
||||
IBOOKS_ANNOTATION_SHM = IBOOKS_ANNOTATION_DB + '-shm'
|
||||
IBOOKS_ANNOTATION_WAL = IBOOKS_ANNOTATION_DB + '-wal'
|
||||
IBOOKS_LIBRARY_DB = os.path.expanduser('~/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite')
|
||||
IBOOKS_LIBRARY_SHM = IBOOKS_LIBRARY_DB + '-shm'
|
||||
IBOOKS_LIBRARY_WAL = IBOOKS_LIBRARY_DB + '-wal'
|
||||
IBOOKS_BOOKS_PLIST = os.path.expanduser('~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books/Books.plist')
|
||||
IBOOKS_BOOKS_DIR = os.path.expanduser('~/Library/Mobile Documents/iCloud~com~apple~iBooks/Documents')
|
||||
|
||||
@@ -29,8 +31,14 @@ LOCAL_ANNOTATION_DB = os.path.join(DATA_DIR, 'AEAnnotation.sqlite')
|
||||
LOCAL_ANNOTATION_SHM = os.path.join(DATA_DIR, 'AEAnnotation.sqlite-shm')
|
||||
LOCAL_ANNOTATION_WAL = os.path.join(DATA_DIR, 'AEAnnotation.sqlite-wal')
|
||||
LOCAL_LIBRARY_DB = os.path.join(DATA_DIR, 'BKLibrary.sqlite')
|
||||
LOCAL_LIBRARY_SHM = os.path.join(DATA_DIR, 'AEAnnotation.sqlite-shm')
|
||||
LOCAL_LIBRARY_WAL = os.path.join(DATA_DIR, 'AEAnnotation.sqlite-wal')
|
||||
LOCAL_BOOKS_PLIST = os.path.join(DATA_DIR, 'Books.plist')
|
||||
|
||||
# 统计用:每日最小阅读时长(单位:秒)
|
||||
READ_TIME_DAY = 60
|
||||
|
||||
# 阿里 DashScope API Key(优先读取环境变量,若未设置则使用下面的默认值)
|
||||
# 注意:为安全起见,生产或开源仓库不要直接硬编码真实密钥,建议只保留 os.environ 读取逻辑。
|
||||
DASHSCOPE_API_KEY = os.environ.get('DASHSCOPE_API_KEY', 'sk-2546da09b6d9471894aeb95278f96c11')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user