Commit 49992b28 authored by Booloki's avatar Booloki

Merge branch 'topic/cleaning' into 'master'

Remove unused *_decode functions

See merge request !3
parents 4750f18a 7bf5d38b
Pipeline #67 passed with stage
in 17 seconds
......@@ -64,28 +64,6 @@ cropdetect () {
rm /tmp/cropdetect.out
}
## 'decode' avconv output file
avconv_decode () {
while read -r LINE
do
ID_HEX=$(echo "${LINE}" | grep '^Stream' | cut -d '[' -f 2 | cut -d ']' -f 1)
if [[ ! "${ID_HEX}" == "" ]]; then
echo "ID $((ID_HEX - $(echo "${LINE}" | grep ^Stream | cut -d ' ' -f 3-)))"
fi
done < "${1}"
}
## 'decode' lsdvd output file
lsdvd_decode () {
while read -r LINE
do
ID_HEX=$(echo "${LINE}" | grep -vE '^Title|VTS|Chapter' | grep -o '.\{5\}$' | sed 's/,//')
if [[ ! "${ID_HEX}" == "" ]]; then
echo "ID $((ID_HEX - $(echo "${LINE}" | sed "s/', Stream id: ....'//" | sed "s/', Content: Undefined'//")))"
fi
done < "${1}"
}
## copy DVD to local iso file
# need ISO_FILE
# DVD_MOUNT_PATH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment