emby refresh call

Support for Ubuntu and other Desktop Linux distributions
Post Reply
jonyskids
Posts: 5
Joined: 01 Oct 2017, 23:04

emby refresh call

Post by jonyskids »

This what I am running:

Code: Select all

FileBot 4.9.0 (r7234)
JNA Native: 4.0.1
MediaInfo: 0.7.91
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
unrar: java.io.IOException: Cannot run program "unrar": error=2, No such file or directory
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-03-16 (r625)
Groovy: 3.0.2
JRE: OpenJDK Runtime Environment 1.8.0_242
JVM: 32-bit OpenJDK Client VM
CPU/MEM: 4 Core / 174 MB Max Memory / 27 MB Used Memory
OS: Linux (arm)
HW: Linux SkidsPi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
STORAGE: ext4 [/] @ 25 GB | autofs [/mnt/64dce9c8-bb04-4c78-9d5b-2abb52e1a5ab] @ 2.4 TB | autofs [/mnt/nfs_SkidsBook] @ 1.2 TB | ext4 [/mnt/64dce9c8-bb04-4c78-9d5b-2abb52e1a5ab] @ 2.4 TB | nfs [/mnt/nfs_SkidsBook] @ 1.2 TB
DATA: /root/.filebot
Package: DEB
License: FileBot License PX6356115 (Valid-Until: 2068-11-30)

When I attempt:

Code: Select all

POST: https://[email protected]:8920/Library/Refresh?api_key=0c450f1053ff4749a22d351e0cf9a3bd
I get:

Code: Select all

ConnectException: Connection refused (Connection refused)
Thanks for any efforts on my behalf.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: emby refresh call

Post by rednoah »

The --def emby=host:apikey parameter works like this:

Code: Select all

--def emby="192.168.2.3:0c450f1053ff4749a22d351e0cf9a3bd"

:idea: If your setup is non-standard and requires more tricky HTTP requests, then you can use --def exec with your own curl calls.


:idea: Note that HTTPS and IP is generally incompatible, and although browsers make it work by allowing you to ignore all the errors, programs like FileBot generally do not allow you to bypass HTTPS security. You might prefer to use HTTP if you connect to your server by IP.


:arrow: Please see amc script manual for details.
:idea: Please read the FAQ and How to Request Help.
jonyskids
Posts: 5
Joined: 01 Oct 2017, 23:04

Re: emby refresh call

Post by jonyskids »

I fear I may have misrepresented myself.

This is what I have used:

Code: Select all

filebot -script dev:amc --def "ut_label=TV" --output  /mnt/dietpi_userdata/Media --action duplicate --conflict auto -non-strict --log-file amc.log --def unsorted=y music=y artwork=y clean=y  --def [email protected]:0c450f1053ff4749a22d351e0cf9a3bd  \excludeList=".excludes" ut_dir="/mnt/dietpi_userdata/completed" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL"
It returns:

Code: Select all

POST: https://[email protected]:8920/Library/Refresh?api_key=0c450f1053ff4749a22d351e0cf9a3bd
and then

Code: Select all

ConnectException: Connection refused (Connection refused)
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: emby refresh call

Post by rednoah »

I think I got it the first time around. :lol:


GOOD:

Code: Select all

--def emby="192.168.2.3:0c450f1053ff4749a22d351e0cf9a3bd"

BAD:

Code: Select all

--def [email protected]:0c450f1053ff4749a22d351e0cf9a3bd

:!: If you somehow need to use HTTP basic authentication as root without password then you can't use --def emby. But you can use --def exec instead do your own curl requests.


GOOD:

Code: Select all

--def exec="curl <URL>"
:idea: Please read the FAQ and How to Request Help.
Post Reply