plex, tested the code on local machine.

This commit is contained in:
me
2026-08-18 14:12:58 -07:00
parent dc3bdb1c82
commit 76fa85cbc0
+5 -3
View File
@@ -379,11 +379,13 @@ function pull-plex {
# TBD: Needs tested. # TBD: Needs tested.
cd "$dest" cd "$dest"
ls | while read dir; do ls | while read dir; do
cd $dir echo "Checking '$dir'"
if [[ -e *.chunk0 ]]; then cd "$dir"
ls -lh
# Unsure why -e and -f don't work here. Spaces in filenames? Globs?
if [[ `ls *.chunk0 2>/dev/null` ]]; then
final="movie.mkv" final="movie.mkv"
echo "Catting files together to make '$final'." echo "Catting files together to make '$final'."
ls -lh *.chunk*
cat *.chunk* > $final cat *.chunk* > $final
ls -lh $final ls -lh $final