Edit Jellyfin library order
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -196,7 +196,7 @@ curl -sf "$JELLYFIN_HOST/System/Configuration/branding" \
|
|||||||
existing_libraries="$(curl -sf "$JELLYFIN_HOST/Library/VirtualFolders" \
|
existing_libraries="$(curl -sf "$JELLYFIN_HOST/Library/VirtualFolders" \
|
||||||
-H 'Authorization: MediaBrowser Token="'"$token"'"')"
|
-H 'Authorization: MediaBrowser Token="'"$token"'"')"
|
||||||
|
|
||||||
for filepath in /etc/jellyfin/libraries/*/*.json; do
|
find /etc/jellyfin/libraries -name "*.json" | sort -V | while IFS= read -r filepath; do
|
||||||
collectionType=$(jq -rn --arg s "$(basename "$(dirname "$filepath")")" '$s|@uri')
|
collectionType=$(jq -rn --arg s "$(basename "$(dirname "$filepath")")" '$s|@uri')
|
||||||
name=$(jq -rn --arg s "$(basename "$filepath" .json)" '$s|@uri')
|
name=$(jq -rn --arg s "$(basename "$filepath" .json)" '$s|@uri')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user