mirror of
https://github.com/RicterZ/nhentai.git
synced 2026-04-08 18:50:21 +02:00
Initial commit: doujinshi-dl generic plugin framework
History reset as part of DMCA compliance. The project has been refactored into a generic, site-agnostic download framework. Site-specific logic lives in separate plugin packages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
16
doujinshi_dl/core/config.py
Normal file
16
doujinshi_dl/core/config.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# coding: utf-8
|
||||
"""Runtime configuration store for the main package.
|
||||
|
||||
Plugins write their paths and settings here so that generic utilities
|
||||
(e.g. db.py) can read them without hard-coding any plugin name.
|
||||
"""
|
||||
|
||||
_runtime: dict = {}
|
||||
|
||||
|
||||
def set(key: str, value) -> None:
|
||||
_runtime[key] = value
|
||||
|
||||
|
||||
def get(key: str, default=None):
|
||||
return _runtime.get(key, default)
|
||||
Reference in New Issue
Block a user