fix: resolve ffmpeg path dynamically, handle empty crop check, and strip quotes in wrapper
Build and Release Plugin / release (push) Successful in 37s
Build and Release Plugin / release (push) Successful in 37s
This commit is contained in:
@@ -92,9 +92,7 @@ for (( i=1; i<=$#; i++ )); do
|
||||
done
|
||||
|
||||
if [ -n ""$INPUT_FILE"" ]; then
|
||||
# Jellyfin przekazuje ścieżkę z prefiksem file: (np. file:""/home/..."").
|
||||
# Shell usuwa cudzysłowy automatycznie – zostaje nam tylko file: do usunięcia.
|
||||
CLEAN_PATH=""${{INPUT_FILE#file:}}""
|
||||
CLEAN_PATH=$(echo ""$INPUT_FILE"" | tr -d '""' | sed 's/^file://')
|
||||
|
||||
CROP_DATA=$(curl -s --max-time 1 -G --data-urlencode ""Path=$CLEAN_PATH"" http://127.0.0.1:8096/BlackBarRemover/CropByPath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user