Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd "${1%/*}" || exit
- subliminal -l 'nl' --cache-dir=/tmp/ -s bierdopje "$2" 2>&1 | tee "/opt/media/sickbeard/log.txt"
- sleep 5
- srtfile=$(sed -n '/ from bierdopje/{s///p;q;}' /opt/media/sickbeard/log.txt)
- dest=${1%.*}.srt
- mv "$srtfile" "${1%.*}.srt"
- chmod 660 "${dest}"
- #rm "${srtfile##*/}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement