diff options
author | B. Stack <bgstack15@gmail.com> | 2024-02-04 21:36:48 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-02-04 21:36:48 -0500 |
commit | 088ea9a39218593868bd1302b536d952797feb4d (patch) | |
tree | a169d89a5e1ffb50d247311ddeeea979f585d7c3 | |
parent | initial commit (diff) | |
download | jellystack-088ea9a39218593868bd1302b536d952797feb4d.tar.gz jellystack-088ea9a39218593868bd1302b536d952797feb4d.tar.bz2 jellystack-088ea9a39218593868bd1302b536d952797feb4d.zip |
add readme
-rw-r--r-- | README.md | 56 | ||||
-rw-r--r-- | autocomplete-rescan.bash | 2 |
2 files changed, 57 insertions, 1 deletions
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 +<!-- +.. File: README.md +.. Location: /mnt/public/Support/Programs/jellyfin/scripts/ +.. Author: bgstack15 +.. Startdate: 2024-01-31-4 20:22 +.. SPDX-License-Identifier: GPL-3.0-only +.. Title: jellyfin stackrpms cli frontend +.. Project: jellystack +.. Purpose: Describe how to use jellystack +.. History: +.. Usage: +.. Reference: +.. Improve: +.. Dependencies: +.. Documentation: +--> +## 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 <TAB> + +# 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" |