Skip to content

Commit 541472b

Browse files
authored
Update plex_update.sh
1 parent 17540f4 commit 541472b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plex_update.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/bash
22

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+
37
# this uses python3
48
# docker compose exec zurg apk add python3
59
# sudo apt install python3
610

711
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
1014

1115
# Get the list of section IDs
1216
section_ids=$(curl -sLX GET "$plex_url/library/sections" -H "X-Plex-Token: $token" | xmllint --xpath "//Directory/@key" - | sed 's/key="//g' | tr '"' '\n')

0 commit comments

Comments
 (0)