aboutsummaryrefslogtreecommitdiff
path: root/rescan-library.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rescan-library.sh')
-rwxr-xr-xrescan-library.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/rescan-library.sh b/rescan-library.sh
new file mode 100755
index 0000000..230c78b
--- /dev/null
+++ b/rescan-library.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# File: rescan-library.sh
+# Location: /mnt/public/Support/Programs/jellyfin/scripts/
+# Author: bgstack15
+# Startdate: 2024-01-20-7 13:09
+# SPDX-License-Identifier: GPL-3.0-only
+# Title: rescan-library utility for jellyfin
+# Project: jellystack
+# Purpose: oneliner to rescan a specific library so I don't have to navigate web ui
+# History:
+# Usage:
+# . /mnt/public/Support/Programs/jellyfin/scripts/autocmplete-rescan.bash
+# alias rescan-library=/mnt/public/Support/Programs/jellyfin/scripts/rescan-library.sh
+# rescan-library <TAB> for autocomplete
+# Reference:
+# Improve:
+# Dependencies:
+# jellystack.py, jellystack_lib.py, python3
+# Documentation:
+. ~/.config/jellystack
+test -z "${password}" && export password="example"
+test -z "${username}" && export username="admin"
+test -z "${server}" && export server="http://example.com:8096" # omit the slash
+executable="$( dirname "$( readlink -f "${0}" )" )/jellystack.py"
+for word in "${@}" ;
+do
+ python3 "${executable}" --library "${word}"
+done
bgstack15