The `config.sample` file provides a default configuration. Please copy it to `config` and modify it to reflect your needs. Some parts of the configuration can be overridden by command line parameters, other variables shall use those parameters. Thus the config file is divided in two parts (functions): `funcConfigPre` and `funcConfigPost`.
In `funcConfigPre` the following values have to be set:
I want to explain my OTR workflow to show you how OTR-DecodeAll fits into it and to give you some hints what is possible.
- I download the otrkeys with DelugeD, a BitTorrent client. It has several nice features like
- Remote control on smartphones and desktops
- A RSS client where I can teach it to automatically download my favourite series
- Moving finished files to a specified directory
- Specifing lables which are used later
- Executing programs when a torrent was added or is finished
- When a new torrent is added, the script `delugeAddTorrent.sh` from Jonny007-MKD/Torrent-Label-DB is called and a new entry in this database is created
- The script `refreshDb.sh` from Jonny007-MKD/Torrent-Label-DB is called periodically, so when I change the label of a torrent it gets updated in the database
- When the torrent is finished, it gets moved to the `Downloaded/` directory
- The script `otrDecodeAll.sh` from this repository is executed periodically and decodes all files.
Labels
------
Labels are used to specify the type of torrent. I use it to specify the type of the movie and to determine the destination folder. Some examples are:
- english movies
- german movies
- english series
- german series
- documentations
Based on these labels `otrDecodeAll` will handle the files differently. If the flag for `saneRenamix` (from Jonny007-MKD/OTR-SaneRename) is set to true this script is executed to determine a nice filename for series files. At the end of the script the movie will be moved to a subfolder based on the label. These settings can be specified in the `config` file:
addLabel "movie-en" "Filme-En" 0
This line adds a new label "movie". Files with this label will be moved to the subfolder "Filme-En/" and saneRenamix will not be used.