blob: 44e4becbb1a3e1ff8c8cfc0f645eeff860f07df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# 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
|