This commit is contained in:
2025-01-18 11:16:42 +01:00
parent fe87becfc4
commit 9318da0787

View File

@@ -1,14 +1,14 @@
#!/bin/bash
# API endpoint and your API key
# api_url="http://172.16.16.11:8096/emby" (dont forget the "/emby".. even though you use Jellyfin)
# api_key="xaxajsklujkjaskjaklsjokajss"
# user_id="kjkhkjahdjhsakjdhsakjdhkasd"
api_url="http://server-ip:8096/emby"
api_url="http://server-ip:8096"
api_key=""
user_id=""
# Ensure '/emby' is appended to the URL if not already present
if [[ ! "$api_url" =~ /emby$ ]]; then
api_url="$api_url/emby"
fi
server_ip=$(echo "$api_url" | sed -E 's#^https?://([^:/]+).*$#\1#')
# --- ANSI escape codes for colors ---