#commandline scripts handles search string stange.

1 messages · Page 1 of 1 (latest)

little belfry
#

I'm working at voice control for jellyfin that i can start movies using my voice.

I created a script that fills a sql db with all movies and i use a levenheit function to make the best match.
all fine but i have a problem integration into home assistant.

i use the commandline
jellyfin_search: ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=accept-new daft@192.168.5.50 /opt/sascha/jellyfin/jellysearch.php {search}

the tracing states executed'

Resultaat:

params:
  domain: shell_command
  service: jellyfin_search
  service_data:
    search: fireplace
  target: {}
running_script: false

with context: id: 01JERN2BKH38QCGGR5XH4N8YTD parent_id: null user_id: null search: stdout: |- [{"jellyfin_id":"c09d5f1c1658fd0d70ed9e5e13257aa7","name":"Snatch"}] stderr: '' returncode: 0
as outcome instead of

➜  config  ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=accept-new daft@192.168.5.50 /opt/sascha/jellyfin/jellysearch.php fireplace
[{"jellyfin_id":"9e8ad8995296f77a2aa12872cde4875e","name":"fireplace"}]#                                                                     ```           

anyway why fireplace isnt shown???