mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 11:25:08 +00:00
docs(post-scripts): use post-script as the one term for hooks
Add the post-script row to the ste-writing terminology contract and replace hook/postscript/post-download script across docs and docstrings.
This commit is contained in:
@@ -597,7 +597,7 @@ async def download(request: web.Request) -> web.Response:
|
||||
description: >-
|
||||
Download a video title based on the specified parameters.
|
||||
'postscript', 'post_script' and 'post_scripts' are never accepted and return 400.
|
||||
You configure post-download hooks only in unshackle.yaml.
|
||||
You configure post-scripts only in unshackle.yaml.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
|
||||
@@ -142,7 +142,7 @@ def build_context(
|
||||
|
||||
|
||||
def season_context(context: dict[str, str], folder: Path) -> dict[str, str]:
|
||||
"""Blank the file-level variables so a season/album hook describes the folder."""
|
||||
"""Blank the file-level variables so a season/album post-script describes the folder."""
|
||||
out = dict(context)
|
||||
for key in ("filepath", "filename", "ext", "sidecars", "episode", "episode_name"):
|
||||
out[key] = ""
|
||||
|
||||
Reference in New Issue
Block a user