File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # PLEX PARTIAL SCAN script or PLEX UPDATE script
4
+ # When zurg detects changes, it can trigger this script IF your config.yml contains
5
+ # on_library_update: sh plex_update.sh "$@"
6
+
3
7
# this uses python3
4
8
# docker compose exec zurg apk add python3
5
9
# sudo apt install python3
6
10
7
11
plex_url=" http://yourplexip:32400" # If you're using zurg inside a Docker container, by default it is 172.17.0.1:32400
8
- token=" yourplextoken"
9
- zurg_mount=" /mnt/zurg" # replace with your zurg mount
12
+ token=" yourplextoken" # open Plex in a browser, open dev console and copy-paste this: window.localStorage.getItem("myPlexAccessToken")
13
+ zurg_mount=" /mnt/zurg" # replace with your zurg mount path, ensure this is what Plex sees
10
14
11
15
# Get the list of section IDs
12
16
section_ids=$( curl -sLX GET " $plex_url /library/sections" -H " X-Plex-Token: $token " | xmllint --xpath " //Directory/@key" - | sed ' s/key="//g' | tr ' "' ' \n' )
You can’t perform that action at this time.
0 commit comments