#!/bin/sh

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)

. /etc/profile
oe_setup_addon service.emby4

LD_PRELOAD="$ADDON_DIR/lib/libMagickCore-7.Q16HDRI.so.7 \
            $ADDON_DIR/lib/CORE_RL_Wand_.so" \
nice -n "$emby_nice" \
le_dotnet $ADDON_DIR/emby/EmbyServer.dll \
  -programdata $ADDON_HOME \
  -ffmpeg /storage/.kodi/addons/tools.ffmpeg-tools/bin/ffmpeg \
  -ffprobe /storage/.kodi/addons/tools.ffmpeg-tools/bin/ffprobe
