diff --git a/make.sh b/make.sh index 6a9ccee..21400a2 100644 --- a/make.sh +++ b/make.sh @@ -4,7 +4,7 @@ #not found you need to run it via the bash command # #for some reason on certain distros this doesnt get # #done automatically via the top line.... im looking # -#at you wsl # +#at you wsl # #so the command would be sudo bash ./make.sh etc # ##################################################### # Default values @@ -19,13 +19,13 @@ get_item_description() { local item_id="$2" local description #YOU MUST CHANGE THE LINE BELOW TO HAVE YOUR CORRECT LOCAL OR REMOTE DOMAIN / IP:PORT OR THE SCRIPT WILL FAIL TO PULL DESCRIPTIONS SO REPLACE YOURDOMAINNAMEHERE. - description=$(curl -s -H "X-Emby-Token: $api_key" "http://YOURDOMAINNAMEHERE/emby/Users/$user_id/Items?Ids=$item_id&fields=Overview" | jq -r '.Items[0].Overview') + description=$(curl -s -H "X-Emby-Token: $api_key" "http://YOUTDOMAINNAMEHERE/emby/Users/$user_id/Items?Ids=$item_id&fields=Overview" | jq -r '.Items[0].Overview') echo "$description" } # Set the user ID and API key for the request -user_id="useridhere" # Replace with the actual user ID -api_key="validapikeyhere" # Replace with your Jellyfin API key +user_id="REPLACEME" # Replace with the actual user ID +api_key="REPLACEME" # Replace with your Jellyfin API key # Function to display usage information @@ -103,114 +103,7 @@ cat < slideshow.html Slideshow - + EOL @@ -221,65 +114,42 @@ for item_id in "${main_item_ids[@]}"; do backdrop_url="/Items/$item_id/Images/Backdrop/0" logo_url="/Items/$item_id/Images/Logo" description=$(get_item_description "$user_id" "$item_id") - cat <> slideshow.html - - Backdrop - + +
+ Backdrop
$description
+
EOL done -# Add the JavaScript for randomizing the order of slides +# Add the JavaScript for keyboard navigation and slide functionality cat <> slideshow.html +