fdf
This commit is contained in:
@@ -7,6 +7,7 @@ import shutil
|
||||
import subprocess
|
||||
|
||||
from SYS.logger import log, debug
|
||||
from SYS.payload_builders import build_file_result_payload
|
||||
from SYS.utils import sha256_file
|
||||
from . import _shared as sh
|
||||
from SYS import pipeline as ctx
|
||||
@@ -279,13 +280,15 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
|
||||
|
||||
title = extract_title_from_result(item) or output_path.stem
|
||||
|
||||
ctx.emit({
|
||||
"path": str(output_path),
|
||||
"title": title,
|
||||
"hash": out_hash,
|
||||
"media_kind": target_kind,
|
||||
"source_path": str(input_path),
|
||||
})
|
||||
ctx.emit(
|
||||
build_file_result_payload(
|
||||
title=title,
|
||||
path=str(output_path),
|
||||
hash_value=out_hash,
|
||||
media_kind=target_kind,
|
||||
source_path=str(input_path),
|
||||
)
|
||||
)
|
||||
|
||||
if delete_src:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user