Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #!/bin/bash
  2. cd "${1%/*}" || exit
  3. subliminal -l 'nl' --cache-dir=/tmp/ -s bierdopje "$2" 2>&1 | tee "/opt/media/sickbeard/log.txt"
  4.  
  5. sleep 5
  6.  
  7. srtfile=$(sed -n '/ from bierdopje/{s///p;q;}' /opt/media/sickbeard/log.txt)
  8. dest=${1%.*}.srt
  9.  
  10. mv "$srtfile" "${1%.*}.srt"
  11. chmod 660 "${dest}"
  12. #rm "${srtfile##*/}"
  13.  
  14.  
  15.  
  16.  
  17. 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']
  18.  
  19. Absolute path to script: /scripts/media/subliminal
  20.  
  21. Script result: /scripts/media/subliminal: line 3: subliminal: command not found
  22.  
  23. mv: cannot stat `': No such file or directory
  24.  
  25. 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