mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
18 lines
560 B
Bash
Executable File
18 lines
560 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
printf "Cleaning subtitles for '%s' ...\n" "$1"
|
|
python3 /add-ons/subcleaner/subcleaner.py "$1" -s
|
|
|
|
# case $1 in
|
|
# *Movies*) section="4";;
|
|
# *Television*) section="5";;
|
|
# esac
|
|
|
|
# if [[ -n "${section}" ]]; then
|
|
# printf "Refreshing Plex section '%s' for '%s' ...\n" "${section}" "$(dirname "$1")"
|
|
# /usr/bin/curl -X PUT -G \
|
|
# --data-urlencode "path=$(dirname "$1")" \
|
|
# --data-urlencode "X-Plex-Token=$2" \
|
|
# "http://plex.default.svc.cluster.local:32400/library/sections/${section}/refresh"
|
|
# fi
|