plex, tested the code on local machine.
This commit is contained in:
@@ -379,11 +379,13 @@ function pull-plex {
|
||||
# TBD: Needs tested.
|
||||
cd "$dest"
|
||||
ls | while read dir; do
|
||||
cd $dir
|
||||
if [[ -e *.chunk0 ]]; then
|
||||
echo "Checking '$dir'"
|
||||
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"
|
||||
echo "Catting files together to make '$final'."
|
||||
ls -lh *.chunk*
|
||||
|
||||
cat *.chunk* > $final
|
||||
ls -lh $final
|
||||
|
||||
Reference in New Issue
Block a user