From 088ea9a39218593868bd1302b536d952797feb4d Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sun, 4 Feb 2024 21:36:48 -0500 Subject: add readme --- README.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ autocomplete-rescan.bash | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0f6b0c --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# README for jellystack project + +## Overview +This jellystack project exists to wrap around [jellyfin/jellyfin-apiclient-python: Python API Client for Jellyfin](https://github.com/jellyfin/jellyfin-apiclient-python). I have my own tasks to run and I didn't even read the API client source to see if there was an easy way to rescan a library. + +I use this library to make it easy to rescan an individual library. Obviously Jellyfin has the ability to have a specific library watch a directory, but for some reason this isn't fast enough for me. + +So I use this library, shell script, password file, and bash autocompletion to make my life easier. + +## Upstream +[Author's repo](https://bgstack15.ddns.net/cgit/jellystack/) + +## Alternatives +Visit the web UI, log in as an admin user, navigate to the library and select "scan now." (So exhausting!) + +## Reason for existence +Because it was easier than examining jellyfin-api-client to see if such a command already existed. But I needed a frontend anyway. + +## Using + +Set the file contents according to heading [Associated files](#associated-files) below. + +Dot-source in `~/.bashrc` the included `autocomplete-rescan.bash` script: + + test -f /path/to/project/autocomplete-rescan.bash && . /path/to/project/autocomplete-rescan.bash + +This aliases rescan-library.sh to `rescan-library` so the autocomplete then works. The first time you run the autocomplete in a day (it caches for 23 hours), it will fetch the library names. So you would just type: + + rescan-library + +# Dependencies + +* [jellyfin/jellyfin-apiclient-python: Python API Client for Jellyfin](https://github.com/jellyfin/jellyfin-apiclient-python) + +## Associated files + +* `~/.config/jellystack` dot-sourceable shell script that exports `username`, `password`, and `server` for the library to use. +* `~/.jellyfin.password` plaintext password, for autocomplete +* ` + +# References diff --git a/autocomplete-rescan.bash b/autocomplete-rescan.bash index 28787b2..06af729 100644 --- a/autocomplete-rescan.bash +++ b/autocomplete-rescan.bash @@ -71,4 +71,4 @@ _complete_specific_path() { } complete -F _complete_specific_path rescan-library -alias rescan-library="$( dirname "$( readlink -f "${0}" )" )/rescan-library.sh" +alias rescan-library="/mnt/public/Support/Programs/jellyfin/scripts/rescan-library.sh" -- cgit