commit 211ce4f6a344c0710bde1909bb7678cd2b11bb1c Author: nomadics9 Date: Sun Dec 15 03:02:14 2024 +0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a0a24e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +alaskarfin/docker-compose.yml diff --git a/alaskarfin/Dockerfile b/alaskarfin/Dockerfile new file mode 100644 index 0000000..249c7a2 --- /dev/null +++ b/alaskarfin/Dockerfile @@ -0,0 +1,17 @@ +# Base image +FROM jellyfin/jellyfin:latest + +# Copy your customization files directly into /jellyfin/jellyfin-web +COPY customization/ /jellyfin/jellyfin-web/ + +RUN chmod +x /jellyfin/jellyfin-web/update-index.sh && /jellyfin/jellyfin-web/update-index.sh + +RUN chmod +x /jellyfin/jellyfin-web/titlechange.sh && /jellyfin/jellyfin-web/titlechange.sh + + +RUN apt-get update && apt-get install -y jq && rm -rf /var/lib/apt/lists/* +RUN chmod +x /jellyfin/jellyfin-web/titlechange.sh && /jellyfin/jellyfin-web/update-config.sh + +# Expose the same ports as the base image +EXPOSE 8096 + diff --git a/alaskarfin/customization/bc8d51405ec040305a87.ico b/alaskarfin/customization/bc8d51405ec040305a87.ico new file mode 100644 index 0000000..94740b4 Binary files /dev/null and b/alaskarfin/customization/bc8d51405ec040305a87.ico differ diff --git a/alaskarfin/customization/favicon.ico b/alaskarfin/customization/favicon.ico new file mode 100644 index 0000000..94740b4 Binary files /dev/null and b/alaskarfin/customization/favicon.ico differ diff --git a/alaskarfin/customization/favicon.png b/alaskarfin/customization/favicon.png new file mode 100644 index 0000000..aa749d2 Binary files /dev/null and b/alaskarfin/customization/favicon.png differ diff --git a/alaskarfin/customization/images/icons/android-chrome-192x192_maskable.png b/alaskarfin/customization/images/icons/android-chrome-192x192_maskable.png new file mode 100644 index 0000000..9aeb14a Binary files /dev/null and b/alaskarfin/customization/images/icons/android-chrome-192x192_maskable.png differ diff --git a/alaskarfin/customization/images/icons/icon-128x128.png b/alaskarfin/customization/images/icons/icon-128x128.png new file mode 100644 index 0000000..fe11d14 Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-128x128.png differ diff --git a/alaskarfin/customization/images/icons/icon-144x144.png b/alaskarfin/customization/images/icons/icon-144x144.png new file mode 100644 index 0000000..cf8c8d1 Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-144x144.png differ diff --git a/alaskarfin/customization/images/icons/icon-152x152.png b/alaskarfin/customization/images/icons/icon-152x152.png new file mode 100644 index 0000000..a493674 Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-152x152.png differ diff --git a/alaskarfin/customization/images/icons/icon-192x192.png b/alaskarfin/customization/images/icons/icon-192x192.png new file mode 100644 index 0000000..3c8d610 Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-192x192.png differ diff --git a/alaskarfin/customization/images/icons/icon-384x384.png b/alaskarfin/customization/images/icons/icon-384x384.png new file mode 100644 index 0000000..47f030d Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-384x384.png differ diff --git a/alaskarfin/customization/images/icons/icon-512x512.png b/alaskarfin/customization/images/icons/icon-512x512.png new file mode 100644 index 0000000..350c961 Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-512x512.png differ diff --git a/alaskarfin/customization/images/icons/icon-512x512_maskable.png b/alaskarfin/customization/images/icons/icon-512x512_maskable.png new file mode 100644 index 0000000..350c961 Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-512x512_maskable.png differ diff --git a/alaskarfin/customization/images/icons/icon-72x72.png b/alaskarfin/customization/images/icons/icon-72x72.png new file mode 100644 index 0000000..32ea4ae Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-72x72.png differ diff --git a/alaskarfin/customization/images/icons/icon-96x96.png b/alaskarfin/customization/images/icons/icon-96x96.png new file mode 100644 index 0000000..0a2465c Binary files /dev/null and b/alaskarfin/customization/images/icons/icon-96x96.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/android-chrome-192x192.png b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-192x192.png new file mode 100644 index 0000000..8d331fa Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-192x192.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/android-chrome-192x192_maskable.png b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-192x192_maskable.png new file mode 100644 index 0000000..8d331fa Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-192x192_maskable.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/android-chrome-5125x5125.png b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-5125x5125.png new file mode 100644 index 0000000..be46085 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-5125x5125.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/android-chrome-512x512.png b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-512x512.png new file mode 100644 index 0000000..15cb5d6 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-512x512.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/android-chrome-512x512_maskable.png b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-512x512_maskable.png new file mode 100644 index 0000000..15cb5d6 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/android-chrome-512x512_maskable.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/apple-touch-icon-transparent.png b/alaskarfin/customization/images/icons/jellyseerr/apple-touch-icon-transparent.png new file mode 100644 index 0000000..be46085 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/apple-touch-icon-transparent.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/apple-touch-icon.png b/alaskarfin/customization/images/icons/jellyseerr/apple-touch-icon.png new file mode 100644 index 0000000..6988514 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/apple-touch-icon.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/favicon-16x16.png b/alaskarfin/customization/images/icons/jellyseerr/favicon-16x16.png new file mode 100644 index 0000000..ae4e43b Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/favicon-16x16.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/favicon-32x32.png b/alaskarfin/customization/images/icons/jellyseerr/favicon-32x32.png new file mode 100644 index 0000000..6251c4d Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/favicon-32x32.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/favicon.ico b/alaskarfin/customization/images/icons/jellyseerr/favicon.ico new file mode 100644 index 0000000..94740b4 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/favicon.ico differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/favicon.png b/alaskarfin/customization/images/icons/jellyseerr/favicon.png new file mode 100644 index 0000000..aa749d2 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/favicon.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/os_logo_square.png b/alaskarfin/customization/images/icons/jellyseerr/os_logo_square.png new file mode 100644 index 0000000..1ee2392 Binary files /dev/null and b/alaskarfin/customization/images/icons/jellyseerr/os_logo_square.png differ diff --git a/alaskarfin/customization/images/icons/jellyseerr/site.webmanifest b/alaskarfin/customization/images/icons/jellyseerr/site.webmanifest new file mode 100644 index 0000000..1e7e76b --- /dev/null +++ b/alaskarfin/customization/images/icons/jellyseerr/site.webmanifest @@ -0,0 +1,80 @@ +{ + "name": "Alaskar Requests", + "short_name": "Requests", + "start_url": "./", + "icons": [ + { + "src": "./android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "./android-chrome-192x192_maskable.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "./android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + }, + { + "src": "./android-chrome-512x512_maskable.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#1f2937", + "background_color": "#1f2937", + "display": "standalone", + "shortcuts": [ + { + "name": "Discover", + "url": "./", + "icons": [ + { + "src": "./sparkles-icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + } + ] + }, + { + "name": "Requests", + "url": "./requests", + "icons": [ + { + "src": "./clock-icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + } + ] + }, + { + "name": "Profile", + "url": "./profile", + "icons": [ + { + "src": "./user-icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + } + ] + }, + { + "name": "Settings", + "url": "./profile/settings", + "icons": [ + { + "src": "./cog-icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + } + ] + } + ] +} diff --git a/alaskarfin/customization/images/icons/old/icon-128x128.png b/alaskarfin/customization/images/icons/old/icon-128x128.png new file mode 100644 index 0000000..9e12fab Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-128x128.png differ diff --git a/alaskarfin/customization/images/icons/old/icon-144x144.png b/alaskarfin/customization/images/icons/old/icon-144x144.png new file mode 100644 index 0000000..429adaf Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-144x144.png differ diff --git a/alaskarfin/customization/images/icons/old/icon-192x192.png b/alaskarfin/customization/images/icons/old/icon-192x192.png new file mode 100644 index 0000000..7bcd4f5 Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-192x192.png differ diff --git a/alaskarfin/customization/images/icons/old/icon-512x512_maskable.png b/alaskarfin/customization/images/icons/old/icon-512x512_maskable.png new file mode 100644 index 0000000..124b059 Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-512x512_maskable.png differ diff --git a/alaskarfin/customization/images/icons/old/icon-512x512o.png b/alaskarfin/customization/images/icons/old/icon-512x512o.png new file mode 100644 index 0000000..be46085 Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-512x512o.png differ diff --git a/alaskarfin/customization/images/icons/old/icon-72x72.png b/alaskarfin/customization/images/icons/old/icon-72x72.png new file mode 100644 index 0000000..c2d9b74 Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-72x72.png differ diff --git a/alaskarfin/customization/images/icons/old/icon-96x96.png b/alaskarfin/customization/images/icons/old/icon-96x96.png new file mode 100644 index 0000000..3c4dca3 Binary files /dev/null and b/alaskarfin/customization/images/icons/old/icon-96x96.png differ diff --git a/alaskarfin/customization/manifest.json b/alaskarfin/customization/manifest.json new file mode 100644 index 0000000..d6fcd56 --- /dev/null +++ b/alaskarfin/customization/manifest.json @@ -0,0 +1,48 @@ +{ + "name": "AlaskarTV", + "description": "Super Duper Private Theater", + "lang": "en-US", + "short_name": "Alaskar", + "start_url": "index.html#!/home.html", + "theme_color": "#101010", + "background_color": "#202020", + "display": "standalone", + "icons": [ + { + "src": "images/icons/icon-72x72.png", + "sizes": "72x72", + "type": "image/png" + }, + { + "src": "images/icons/icon-96x96.png", + "sizes": "96x96", + "type": "image/png" + }, + { + "src": "images/icons/icon-128x128.png", + "sizes": "128x128", + "type": "image/png" + }, + { + "src": "images/icons/icon-144x144.png", + "sizes": "144x144", + "type": "image/png" + }, + { + "src": "images/icons/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "images/icons/icon-512x512_maskable.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "images/icons/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/alaskarfin/customization/titlechange.sh b/alaskarfin/customization/titlechange.sh new file mode 100755 index 0000000..5952a1c --- /dev/null +++ b/alaskarfin/customization/titlechange.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Set the base directory where Jellyfin's files are located +BASE_DIR="/jellyfin/jellyfin-web" + +# Update document.title to "AlaskarTV" in all relevant files +grep -rl 'document\.title="Jellyfin"' "$BASE_DIR" | while read -r file; do + sed -i 's/document\.title="Jellyfin"/document\.title="AlaskarTV"/g' "$file" +done + +# Ensure fallback title is also updated to "AlaskarTV" +grep -rl 'document.title=e||"Jellyfin"' "$BASE_DIR" | while IFS= read -r file; do + sed -i 's/document.title=e||"Jellyfin"/document.title=e||"AlaskarTV"/g' "$file" +done + +echo "Document titles updated to 'AlaskarTV' in all files!" + diff --git a/alaskarfin/customization/update-config.sh b/alaskarfin/customization/update-config.sh new file mode 100755 index 0000000..e99e536 --- /dev/null +++ b/alaskarfin/customization/update-config.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Path to the config.json file +CONFIG_FILE="/jellyfin/jellyfin-web/config.json" + +# Check if the file exists +if [ ! -f "$CONFIG_FILE" ]; then + echo "Error: config.json not found at $CONFIG_FILE" + exit 1 +fi + +# Define the JSON to be added +NEW_LINKS=' +{ + "name": "Requests 🍿", + "icon": "download", + "url": "https://r.askar.tv" +}, +{ + "name": "Manage Account", + "icon": "manage_accounts", + "url": "https://user.askar.tv/my/account" +}, +{ + "name": "Developer", + "icon": "code", + "url": "https://alaskar.dev" +}' + +# Insert the new links into the "menuLinks" array +jq --argjson newLinks "[$NEW_LINKS]" ' + .menuLinks += $newLinks +' "$CONFIG_FILE" > "${CONFIG_FILE}.tmp" && mv "${CONFIG_FILE}.tmp" "$CONFIG_FILE" + +echo "Menu links added successfully to config.json!" diff --git a/alaskarfin/customization/update-index.sh b/alaskarfin/customization/update-index.sh new file mode 100755 index 0000000..0a9d91e --- /dev/null +++ b/alaskarfin/customization/update-index.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Path to the index.html file inside the container +INDEX_HTML_PATH="/jellyfin/jellyfin-web/index.html" + +# Debugging: Check if the file exists +if [ ! -f "$INDEX_HTML_PATH" ]; then + echo "Error: index.html not found at $INDEX_HTML_PATH" + exit 1 +fi + +# Update the manifest link +sed -i 's|||' "$INDEX_HTML_PATH" + +# Update the apple-touch-icon link (if it exists in the file) +sed -i 's|||' "$INDEX_HTML_PATH" + +# Debugging: Display a message if the updates were successful +if grep -q '' "$INDEX_HTML_PATH"; then + echo "Manifest link updated successfully." +else + echo "Error: Manifest link update failed." +fi + +if grep -q '' "$INDEX_HTML_PATH"; then + echo "Apple-touch-icon link updated successfully." +else + echo "Note: Apple-touch-icon link not found or updated." +fi + diff --git a/alaskarfin/version.txt b/alaskarfin/version.txt new file mode 100644 index 0000000..38ec5db --- /dev/null +++ b/alaskarfin/version.txt @@ -0,0 +1 @@ +10.10.2