mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-27 13:14:24 -04:00
change plugins to have both a .register that runs at import and .ready that runs later
This commit is contained in:
parent
f1cca5bbba
commit
4df90fbb40
6 changed files with 76 additions and 12 deletions
|
@ -2,6 +2,7 @@ from typing import List, Dict
|
|||
from subprocess import run, PIPE
|
||||
from pydantic import InstanceOf, Field
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from pydantic_pkgr import BinProvider, BinName, BinProviderName, ProviderLookupDict
|
||||
from plugantic.base_plugin import BasePlugin
|
||||
|
@ -74,4 +75,5 @@ class YtdlpPlugin(BasePlugin):
|
|||
|
||||
|
||||
PLUGIN = YtdlpPlugin()
|
||||
PLUGIN.register(settings)
|
||||
DJANGO_APP = PLUGIN.AppConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue