From b1ed46c64e689e0f22f1e94018a17f5c129d82a3 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 31 Jan 2024 08:43:29 -0500 Subject: initial commit --- rescan-library.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 rescan-library.sh (limited to 'rescan-library.sh') 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 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 -- cgit