diff options
author | B. Stack <bgstack15@gmail.com> | 2024-01-31 08:43:29 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-01-31 08:43:29 -0500 |
commit | b1ed46c64e689e0f22f1e94018a17f5c129d82a3 (patch) | |
tree | 8cfd3844ce825f93c0b00e0a2084343b0b2a3a52 /rescan-library.sh | |
download | jellystack-b1ed46c64e689e0f22f1e94018a17f5c129d82a3.tar.gz jellystack-b1ed46c64e689e0f22f1e94018a17f5c129d82a3.tar.bz2 jellystack-b1ed46c64e689e0f22f1e94018a17f5c129d82a3.zip |
initial commit
Diffstat (limited to 'rescan-library.sh')
-rwxr-xr-x | rescan-library.sh | 28 |
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 |