refactor(workflows): adopt media.* naming convention

Rename workflow files and their 'name' field with a 'media.' domain
prefix to anticipate future multi-domain expansion (mail.*, calendar.*, ...).

- organize_media -> media.organize_media
- manage_subtitles -> media.manage_subtitles

WorkflowLoader picks them up unchanged (uses data['name']).
This commit is contained in:
2026-05-14 20:55:35 +02:00
parent 239fce9e4e
commit 97adfbda45
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class WorkflowLoader:
Usage: Usage:
loader = WorkflowLoader() loader = WorkflowLoader()
all_workflows = loader.all() all_workflows = loader.all()
workflow = loader.get("organize_media") workflow = loader.get("media.organize_media")
""" """
def __init__(self): def __init__(self):
@@ -1,4 +1,4 @@
name: manage_subtitles name: media.manage_subtitles
description: > description: >
Place subtitle files alongside a video that has just been organised into the library. Place subtitle files alongside a video that has just been organised into the library.
Detects the release pattern automatically, identifies and classifies all tracks, Detects the release pattern automatically, identifies and classifies all tracks,
@@ -1,4 +1,4 @@
name: organize_media name: media.organize_media
description: > description: >
Organise a downloaded series or movie into the media library. Organise a downloaded series or movie into the media library.
Triggered when the user asks to move/organize a specific title. Triggered when the user asks to move/organize a specific title.