-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilebot.sh
33 lines (29 loc) · 1.14 KB
/
filebot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# Folders
INPUT="/downloads"
OUTPUT="/media"
# Formats
# e.g. /media/movies/Titanic (1997)/Titanic.mp4
MOVIES_FORMAT="movieFormat=$OUTPUT/movies/{any{localize[fn.match(/English/Spanish/French|German/)].name}{n}} ({y})/{any{localize[fn.match(/English/Spanish/French|German/)].name}{n}}"
# e.g. /media/tvshows/Game of Thrones (2011)/Season 01/Game of Thrones s01e01.mp4
TVSHOWS_FORMAT="seriesFormat=$OUTPUT/tvshows/{any{localize[fn.match(/English/Spanish/French|German/)].name}{n}} ({y})/Season {s.pad(2)}/{any{localize[fn.match(/English/Spanish/French|German/)].name}{n}} {s00e00}"
# Example command. This will download all files and metadata,
# subtitles, rename all files and move them to the specified folders.
filebot -script fn:amc \
--output "$OUTPUT" \
--action move \
--conflict skip \
--lang "spa" \
-get-subtitles \
-non-strict \
--log-file /config/logs/amc.log \
--def "$MOVIES_FORMAT" "$TVSHOWS_FORMAT" \
--def minFileSize=0 \
--def minLengthMS=0 \
--def subtitles=es,en \
--def artwork=y \
--def clean=y \
--def reportError=y \
--def excludeList=/config/amc_exclude_list.txt \
ut_dir="$INPUT" \
ut_kind="multi"