Skip to content

Commit

Permalink
Script to download subtitles from all movies in the specified path
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Feb 5, 2016
1 parent 026807a commit c0ecfd7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions utils/download_subtitle_path.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Download subtitles from all movies in a directory
MOVIE_TYPES="*.mp4 *.avi *.mkv"
FADES_BIN=/home/alarm/fades/bin/fades
PATH_MOVIES_1=$1

for MOVIE_TYPE in $MOVIE_TYPES; do {
find "$PATH_MOVIES_1" -name $MOVIE_TYPE -type f -print | \
xargs -I '{}' $FADES_BIN -p python2 -d subliminal==1.1.1 -x subliminal download -v \
-p addic7ed -p opensubtitles -p podnapisi -p thesubdb -p tvsubtitles \
-l en -l spa \
'{}'
}; done

0 comments on commit c0ecfd7

Please sign in to comment.