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:
Ricter Zheng
2026-03-25 10:37:21 +08:00
commit 81d008036a
53 changed files with 4063 additions and 0 deletions

View 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)