Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b8e9c0596 | ||
|
|
76fa85cbc0 | ||
|
|
dc3bdb1c82 | ||
|
|
17fe6ba2a4 |
@@ -386,6 +386,24 @@ function pull-plex {
|
||||
fi
|
||||
|
||||
su -c "cp -Rv '$plex_dir'/{1,2}/* '$dest'"
|
||||
|
||||
cd "$dest"
|
||||
ls | while read dir; do
|
||||
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'."
|
||||
|
||||
cat *.chunk* > $final
|
||||
ls -lh $final
|
||||
|
||||
rm -v *.chunk*
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
alias get-plex="pull-plex"
|
||||
|
||||
|
||||
Reference in new issue
Block a user