mirror of
https://github.com/Jonny007-MKD/OTR-DecodeAll
synced 2025-01-22 08:49:50 +01:00
This commit is contained in:
parent
e4d62cdb9f
commit
8f8273a8a7
1 changed files with 8 additions and 1 deletions
|
@ -90,7 +90,7 @@ function funcPerformXbmcCheck {
|
|||
|
||||
# Parse the parameters
|
||||
function funcParam {
|
||||
while getopts "frkvh?e:p:i:o:d:t:" optval; do
|
||||
while getopts "frkvh?e:p:i:o:d:t:l:" optval; do
|
||||
case $optval in
|
||||
"f")
|
||||
funcLog 4 "Set forceRun = 1"
|
||||
|
@ -123,6 +123,9 @@ function funcParam {
|
|||
"c")
|
||||
funcLog 4 "Set delugeDir = $OPTARG"
|
||||
delugeDir=$OPTARG;; # different deluge dir
|
||||
"l")
|
||||
funcLog 4 "Set labelFilter = $OPTARG"
|
||||
labelFilter=$OPTARG;;
|
||||
"h"|"?")
|
||||
funcHelp; # print help
|
||||
exit;;
|
||||
|
@ -260,6 +263,10 @@ function funcProcessFiles {
|
|||
funcMakeVars $file
|
||||
echo -e " >> \033[32m$sanename\033[37m";
|
||||
|
||||
if [ -n "$labelFilter" ] && [[ "$labelFilter" != "$label" ]]
|
||||
funcLog 4 "Label did not match filter. Skipping";
|
||||
continue;
|
||||
fi
|
||||
if [ -z "$label" ]; then
|
||||
funcLog 1 "No label specified for this movie. Skipping"
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue