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##*/}"
- Executing command ['/scripts/media/subliminal', u'/media/harddisks/media/media/TV Series/Person of Interest/Season 02/Person of Interest - 2x08 - Til Death - HD TV.mkv', u'/media/harddisks/data/downloads/sabnzbd/sickbeard/Person of Interest S02E08 720p HDTV X264 DIMENSION/Person.of.Interest.S02E08.720p.HDTV.X264-DIMENSION.mkv', '248742', '2', '8', '2012-11-29']
- Absolute path to script: /scripts/media/subliminal
- Script result: /scripts/media/subliminal: line 3: subliminal: command not found
- mv: cannot stat `': No such file or directory
- chmod: cannot access `/media/harddisks/media/media/TV Series/Person of Interest/Season 02/Person of Interest - 2x08 - Til Death - HD TV.srt': No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement